Hi,

The following code runs perfect in Command Prompt - Icacls "\\server\Users_Data\Tim" /grant "Tim"OI)(CI)M

The above code adds the user "Tim" to the Folder "Tim" by the same name and it sets the permission to Modify successfully with Command Prompt. I would like to do this same thing in a command button in a Excel Userform.
When I write the code in the Command Button in a Excel Userform, it turned RED alert "Compile Error".

I have been looking into how to run this from the Userform and basically every post says the same, "Need to Use Shell". I do not know how to code this to run in a Shell.

Could someone assist on how run this from a CommandButton in a Userform.


Regards,