#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default MkDir error

Can anyone tell me if this is correct? I get a 76 - Path
not found error when I try to see if a directory exists. I
can navigate to it.

If Len(Dir("J:\QA\MonthlyProductAnalysis\HIPSLids" &
strplant & "\" & Year(Date), vbDirectory)) = 0 Then MkDir
("J:\QA\MonthlyProductAnalysis\HIPSLids" & strplant & "\"
& Year(Date))

Thanks,
Eric
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default MkDir error

Hi
try preceding this statement with
ChDir "J:"


--
Regards
Frank Kabel
Frankfurt, Germany


Eric wrote:
Can anyone tell me if this is correct? I get a 76 - Path
not found error when I try to see if a directory exists. I
can navigate to it.

If Len(Dir("J:\QA\MonthlyProductAnalysis\HIPSLids" &
strplant & "\" & Year(Date), vbDirectory)) = 0 Then MkDir
("J:\QA\MonthlyProductAnalysis\HIPSLids" & strplant & "\"
& Year(Date))

Thanks,
Eric

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MkDir error

Should HIPSLids have a \ after it?

--
Regards,
Tom Ogilvy

"Eric" wrote in message
...
Can anyone tell me if this is correct? I get a 76 - Path
not found error when I try to see if a directory exists. I
can navigate to it.

If Len(Dir("J:\QA\MonthlyProductAnalysis\HIPSLids" &
strplant & "\" & Year(Date), vbDirectory)) = 0 Then MkDir
("J:\QA\MonthlyProductAnalysis\HIPSLids" & strplant & "\"
& Year(Date))

Thanks,
Eric



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default MkDir error

That's what it was. Thanks.

-----Original Message-----
Should HIPSLids have a \ after it?

--
Regards,
Tom Ogilvy

"Eric" wrote in

message
...
Can anyone tell me if this is correct? I get a 76 - Path
not found error when I try to see if a directory

exists. I
can navigate to it.

If Len(Dir("J:\QA\MonthlyProductAnalysis\HIPSLids" &
strplant & "\" & Year(Date), vbDirectory)) = 0 Then

MkDir
("J:\QA\MonthlyProductAnalysis\HIPSLids" & strplant

& "\"
& Year(Date))

Thanks,
Eric



.

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
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
mkdir command in excel 2003 on XP SP2 zvi carmi via OfficeKB.com New Users to Excel 2 May 25th 05 12:45 PM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM


All times are GMT +1. The time now is 11:35 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"