![]() |
Saving to "open" directory
I need to create a "save file" command in my macro which allows the file to save to the current directory to prevent "run errors" if the end user has a different directory tree. E.g. I may be using a default c:\ directory, but the spreadsheet user may be on say h:\ directory on a network. The save command needs to be able to save to the open directory. Any advice appreciated! :confused: -- 9119 ------------------------------------------------------------------------ 9119's Profile: http://www.excelforum.com/member.php...o&userid=30593 View this thread: http://www.excelforum.com/showthread...hreadid=502418 |
Saving to "open" directory
You could try in VBA: ActiveWorkbook.SaveAs CurDir & "filename" Not sure if this is what your after -- nickysquawkes ------------------------------------------------------------------------ nickysquawkes's Profile: http://www.excelforum.com/member.php...o&userid=30630 View this thread: http://www.excelforum.com/showthread...hreadid=502418 |
Saving to "open" directory
Thanks Nicky... that works fine for my purposes. :) -- 9119 ------------------------------------------------------------------------ 9119's Profile: http://www.excelforum.com/member.php...o&userid=30593 View this thread: http://www.excelforum.com/showthread...hreadid=502418 |
All times are GMT +1. The time now is 07:53 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com