#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default I hate paths!

Could someone please tell me how to indicate current path in VBA when using
Excel? When I record a macro usinly excel, for example in haveing anothe
workbook open, it always includes the full path. What I want is for the
Workbook to be opened in the current directory, so I can move this directory
to other computers and have it the macro work without having to change paths
at each new machine. I tried ./, but that didn't work for me.
Ross


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default I hate paths!

See VBA help for CurDir



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ross" wrote in message ...
Could someone please tell me how to indicate current path in VBA when using
Excel? When I record a macro usinly excel, for example in haveing anothe
workbook open, it always includes the full path. What I want is for the
Workbook to be opened in the current directory, so I can move this directory
to other computers and have it the macro work without having to change paths
at each new machine. I tried ./, but that didn't work for me.
Ross


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default I hate paths!

I think you are looking for Thisworkbook.Path after reading your other thread

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ron de Bruin" wrote in message ...
See VBA help for CurDir



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ross" wrote in message ...
Could someone please tell me how to indicate current path in VBA when using
Excel? When I record a macro usinly excel, for example in haveing anothe
workbook open, it always includes the full path. What I want is for the
Workbook to be opened in the current directory, so I can move this directory
to other computers and have it the macro work without having to change paths
at each new machine. I tried ./, but that didn't work for me.
Ross


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
DISPLAYING THE LINK PATHS John Excel Worksheet Functions 1 March 29th 07 04:58 PM
Help with filenames and paths. jim9912 Excel Discussion (Misc queries) 2 March 30th 06 05:52 PM
i hate your formatting popus Format Popups Excel Discussion (Misc queries) 1 March 11th 06 01:25 AM
file paths hr Excel Discussion (Misc queries) 0 December 7th 05 04:59 PM
Another Reason to Hate Insurance Companies (as if you needed one) ajricks Excel Worksheet Functions 1 August 25th 05 06:41 AM


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