Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Shawn,
Try something like the following: Dim PathName As String PathName = "C:\Temp" On Error Resume Next MkDir PathName On Error GoTo 0 ChDrive PathName ChDir PathName -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "43fan" wrote in message ... I'm sure this is simple, but after going through the Excel help file, all it has done is confuse me. ;) Basically, I just want to see if a folder exists, if it does, change to the folder, if it doesn't, create it, then change to there. I'll be getting user inputs that will be concatenated to come up with the folder name I'm looking for/changing to. As well, I'll use that same info to name some files that will be saved into that folder. Thanks!! Shawn -- Join the newest in Fantasy Sports. http://www.6FantasySports.com (this site supports the Victory Junction Gang Camp with a portion of all proceeds) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Test if file exists | Excel Discussion (Misc queries) | |||
How to check if a file exists in an ftp folder | Excel Discussion (Misc queries) | |||
Test if a folder exists | Excel Programming | |||
Checking to see if Folder exists | Excel Programming | |||
Test to see if a worksheet exists thanks, Chip | Excel Programming |