Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default root file path


Hi,
I want to create a directory using the macro. I got the code to create
a directory. But i want to place the directory in the same path where
the file conatining macro is there.
Suppose the excel file path is in C:\Project\test.xls then the file
should also be placed in the path C:\Project.

Regards,
Ashish


--
ashishprem
------------------------------------------------------------------------
ashishprem's Profile: http://www.excelforum.com/member.php...o&userid=31485
View this thread: http://www.excelforum.com/showthread...hreadid=517219

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default root file path

Use

ThisWorkbook.Path

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ashishprem" wrote
in message ...

Hi,
I want to create a directory using the macro. I got the code to create
a directory. But i want to place the directory in the same path where
the file conatining macro is there.
Suppose the excel file path is in C:\Project\test.xls then the file
should also be placed in the path C:\Project.

Regards,
Ashish


--
ashishprem
------------------------------------------------------------------------
ashishprem's Profile:

http://www.excelforum.com/member.php...o&userid=31485
View this thread: http://www.excelforum.com/showthread...hreadid=517219



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default root file path

ashishprem,
Check out ThisWorkbook.Path

NickHK

"ashishprem" wrote
in message ...

Hi,
I want to create a directory using the macro. I got the code to create
a directory. But i want to place the directory in the same path where
the file conatining macro is there.
Suppose the excel file path is in C:\Project\test.xls then the file
should also be placed in the path C:\Project.

Regards,
Ashish


--
ashishprem
------------------------------------------------------------------------
ashishprem's Profile:

http://www.excelforum.com/member.php...o&userid=31485
View this thread: http://www.excelforum.com/showthread...hreadid=517219



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
File Path Too Long? Not Anymore! Check out Long Path Tool Max Loger Excel Discussion (Misc queries) 1 March 24th 17 07:59 AM
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo Max Loger Excel Discussion (Misc queries) 0 June 14th 11 04:30 PM
Variabilize File Path or File Name in SumProduct (and Vlookup too) Mike H. Excel Worksheet Functions 2 January 7th 08 09:34 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
How set file open path to filepath of file opened with Explorer ? RandyDtg1 Excel Programming 0 May 14th 04 02:05 AM


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