Thread: MkDir error
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
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