Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default folder permissions with a macro

good day,

i am using the following code in a macro to make a folder (EmpName) before
saving a file into the folder...

EmpName is referenced from a cell in the excel file

On error resume next
mkdir "C:\Operations\HR\EmpName"
On Error goto 0

when the folder is created, the folder permissions are not correct, so the
user cannot save the file directly to the folder. technically, the user
creates the folder so they are the owner, but they cannot save to the folder.
as part of the macro, is it possible to assign folder permissions... ex. the
folder created takes it's permission from the parent folder - in this case HR.

thank you,

jat
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro selects folder Jeff Excel Discussion (Misc queries) 1 July 31st 07 08:01 PM
Macro Folder Not Opening on Start Up Darren H Excel Discussion (Misc queries) 1 June 25th 07 03:04 PM
Copy a folder by macro Brettjg Excel Discussion (Misc queries) 6 March 19th 07 10:51 PM
Macro to create a new folder according to the month Dolphin Excel Discussion (Misc queries) 5 December 15th 06 01:31 PM
Changing Macro Folder JDub Excel Discussion (Misc queries) 1 July 31st 06 04:56 PM


All times are GMT +1. The time now is 08:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"