Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() When a workbook is opened for the first time, I want to automate the creation of a "Business Cases" folder on the user's C drive. Can anyone guide me with the required code to: Test if "C:/Business Cases" exists, and if it doesn't create the folder Any assistance much appreciated Cheers Peter (new to VBA...slowly getting there...) -- peter.thompson ------------------------------------------------------------------------ peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686 View this thread: http://www.excelforum.com/showthread...hreadid=501311 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the workbook code area place this ........
Private Sub Workbook_Open() If Dir("C:\Business Cases\", vbDirectory) = "" Then MkDir "C:\Business Cases" End Sub -- Cheers Nigel "peter.thompson" <peter.thompson.21m19a_1137217802.0932@excelforu m-nospam.com wrote in message news:peter.thompson.21m19a_1137217802.0932@excelfo rum-nospam.com... When a workbook is opened for the first time, I want to automate the creation of a "Business Cases" folder on the user's C drive. Can anyone guide me with the required code to: Test if "C:/Business Cases" exists, and if it doesn't create the folder Any assistance much appreciated Cheers Peter (new to VBA...slowly getting there...) -- peter.thompson ------------------------------------------------------------------------ peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686 View this thread: http://www.excelforum.com/showthread...hreadid=501311 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() That did the trick! Thanks a bunch Peter -- peter.thompson ------------------------------------------------------------------------ peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686 View this thread: http://www.excelforum.com/showthread...hreadid=501311 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a folder | Excel Discussion (Misc queries) | |||
Creating a new folder that does not already exsit. | Excel Discussion (Misc queries) | |||
Creating Folder Folder in My Documents VBA - HELP | Excel Programming | |||
Macro for creating folder | Excel Programming | |||
creating folder | Excel Programming |