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

Hi,




I use the following line to select a file to be opened in a
piece of VB:




dirpathIn = Application.Path + "\Blank Price List v1.1.xls"
'where the blank price list sheet is located




This works perfectly on the 5 or so systems running Win2k
and Office 2k/Excel 2k on different build levels, different
ages, different general installations etc.




However, it does not seem to work on the only machine that
has XP and Office 2002/Excel 2002 and I need to hard code
the path for the line to work.




Question:


Is this a known 'feature' of the 2k/2002 migration or have
I just left something out....




Any help and suggestions gladly received.




Regards,




Simon




email:


removing 'junk' please





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Application.Path

Simon,

What do you mean when you say it doesn't work. Does it return an incorrect
path? Does it return nothing? It works fine for me.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Simon Davies" wrote in message
...
Hi,




I use the following line to select a file to be opened in a
piece of VB:




dirpathIn = Application.Path + "\Blank Price List v1.1.xls"
'where the blank price list sheet is located




This works perfectly on the 5 or so systems running Win2k
and Office 2k/Excel 2k on different build levels, different
ages, different general installations etc.




However, it does not seem to work on the only machine that
has XP and Office 2002/Excel 2002 and I need to hard code
the path for the line to work.




Question:


Is this a known 'feature' of the 2k/2002 migration or have
I just left something out....




Any help and suggestions gladly received.




Regards,




Simon




email:


removing 'junk' please







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
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
hyperlink navigation path path wrong in Excel 2003 CE Admin Excel Discussion (Misc queries) 5 January 7th 06 07:47 PM
how to change absolute path to relative path hwijgerse Excel Worksheet Functions 0 November 25th 05 07:18 AM


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