LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Mk Dir

Hello All,

I am putting the finishing touches on my system and thought of having my
Excel file automatically make the necessary folder on another users computer
if it does not exist. This will allow them to make their report files using
templates associated with command buttons they press at time of need.

Currently I tried this in my Auto_Open module

'Dim Path As String
'Path = "C:\My Documents\Temp Me"
'If IsNot Path = Dir("C:\My Documents\Temp Me") Then
MkDir ("C:\My Documents\Temp Me")
'Else
'Do nothing
'End If

This makes the new folder but the next time it runs create and error.
Obviously because it already is in place......LOL on me.

What would be the correct Dim, and If statements I am looking for to make a
directory that if is there "Do Nothing" else "Make It"? May have application
flavor eh?

Thanks for your help

--
George G

 
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



All times are GMT +1. The time now is 11:13 PM.

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

About Us

"It's about Microsoft Excel"