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

Greetings,

I currently am using one workbook to open another, now the sheet I open is
always located in "\HolSheets\holSheet.xls" and the original workbook is in
the folder that is the parent of the directory HolSheets. This will always be
so, yet not sure where they want me to copy the report once I've completed
it, so does anyone know how to get the root of the original workbook, so then
I only need to specify the path like this

rootPath & "\HolSheets\holSheet.xls"

Being playing around with the filesystem object but still learning that part.

Thanks in advance! (Hopefully that was clear enough)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Get the path of the .xls file


rootPath = Thisworkbook.path
rootPath & "\HolSheets\holSheet.xls"
"NateBuckley" wrote:

Greetings,

I currently am using one workbook to open another, now the sheet I open is
always located in "\HolSheets\holSheet.xls" and the original workbook is in
the folder that is the parent of the directory HolSheets. This will always be
so, yet not sure where they want me to copy the report once I've completed
it, so does anyone know how to get the root of the original workbook, so then
I only need to specify the path like this

rootPath & "\HolSheets\holSheet.xls"

Being playing around with the filesystem object but still learning that part.

Thanks in advance! (Hopefully that was clear enough)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Get the path of the .xls file

I've been messing around with the Filesystem object, trying to do it that way.

Once again thank you.

"Mike" wrote:


rootPath = Thisworkbook.path
rootPath & "\HolSheets\holSheet.xls"
"NateBuckley" wrote:

Greetings,

I currently am using one workbook to open another, now the sheet I open is
always located in "\HolSheets\holSheet.xls" and the original workbook is in
the folder that is the parent of the directory HolSheets. This will always be
so, yet not sure where they want me to copy the report once I've completed
it, so does anyone know how to get the root of the original workbook, so then
I only need to specify the path like this

rootPath & "\HolSheets\holSheet.xls"

Being playing around with the filesystem object but still learning that part.

Thanks in advance! (Hopefully that was clear enough)

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
Creating Excel file that points to relative path .cub file NewUser1 Excel Programming 0 January 11th 08 03:59 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 07:23 AM.

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"