Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Path Not Found Error

Hello my firends,
I'm trying to do what seems to me to be a verysimple thing. use MkDir
to create a directory.

my code looks like this:

Dim PathName as String

PathName=Sheets("sheet1").range("a1") ' this cell contains
C:\App\data\ as the string

MkDir PathName
....

when i run it i get a Path Not Found error.

but when i run the following it's fine;

MkDir Thisworkbook.Path & "\" & PathName

Thanks in advance.
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
Program.xls cannot be found error R Weeden Excel Discussion (Misc queries) 13 May 2nd 23 03:43 AM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
error "module not found" Amit Excel Discussion (Misc queries) 1 May 13th 05 01:24 PM
Which Path not found? Tod Excel Programming 3 August 2nd 03 02:03 PM
Error Msg: 'No Cells were found' Stuart[_5_] Excel Programming 6 July 14th 03 05:57 PM


All times are GMT +1. The time now is 03:49 PM.

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"