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 in Excel 2k and 2002

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: 27,285
Default Application.Path in Excel 2k and 2002

It seems odd to use application.path for this. Maybe you should be using
ThisWorkbook.Path.

--
Regards,
Tom Ogilvy

"Simon" wrote in message
om...
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
Excel 2002: How to reveal path of an open file ? Mr. Low Excel Discussion (Misc queries) 6 July 28th 09 05:13 PM
Excel 2002: How to reveal path of an open file ? Mr. Low Excel Discussion (Misc queries) 2 July 26th 09 02:06 AM
Excel 2002: Can I reveal file path of the other linking files ? Mr. Low Excel Discussion (Misc queries) 0 July 24th 09 05:23 PM
how to insert the path and filename into cell in excel 2002 fuzzylinux Excel Discussion (Misc queries) 2 June 4th 08 09:24 PM
Application.Path Simon Davies Excel Programming 1 November 12th 03 04:52 PM


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