Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to add a radio button( with yes/no options) on my VBA application which should modify the sharing property of a folder kept in any drive at the same PC. When I will choose yes then that particular folder will be shared else it will not share.

What I have tried:

I am not getting any idea about how to achieve this as I am new to VBA.
I am thinking to create a separate windows application for this task but I will go for this option if this task will not be possible through VBA.
Posted
Updated 20-Jun-17 0:07am
v2
Comments
Richard MacCutchan 20-Jun-17 6:11am    
VBA runs in Office Applications, so you will need to check the documentation to see how to access properties of files and directories.
Member 10414776 20-Jun-17 6:40am    
Yes you are right, we can modify properties like read/write/change/full control ,folder permissions but not sharing properties.
Since I couldn't find any relevant result on google for sharing/Unsharing properties.
Richard MacCutchan 20-Jun-17 6:47am    
What did you Google for? See vba sharing directory - Google Search[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900