LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,365
Default ThisWorkbook.Path & Windows Vista

Try putting this code into a module in your workbook and running it and see
what results you get. It may be that what you're seeing is a 'translation'
of the path name being done internally by the system instead of it just
making up a non-existant path.
Sub TestPaths()
Dim anyFile As String
Dim thisFile As String
thisFile = ThisWorkbook.FullName
anyFile = Dir$(thisFile)
If anyFile < "" Then
MsgBox "Found the file: " & anyFile & vbCRLF & "at: " & thisFile
Else
MsgBox "Could not find file: " & anyFile & vbcrlf & "in: " & thisFile
End If
End Sub


"Tom" wrote:

Hello

I am using Windows Vista and Excel 2000, XP, 2003 & 2007.

Now I created an Excel add-in and copied it to the following directory:

C:\Programme\XY\


At next I opened this Excel file and went to the Visual Basic editor. I
entered the command "ThisWorkbook.Path" to test where my add-in is stored -
the system returned the following path:

C:\Program Files\XY\


?!?!? I do not have such a directory (Programme is the german name of
Program Files). I suppose that this has something to do with Windows Vista.
How can I get the path of my add-in Windows Vista? The command has to run in
Windows XP & Windows Vista? Many thanks in advance.

Thomas

 
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
cannot open exel from windows xp in windows vista and visa versa lildiana New Users to Excel 4 February 25th 09 07:26 PM
can windows vista edit shared document from windows xp sasa Excel Worksheet Functions 1 January 9th 08 06:44 PM
ThisWorkbook.Path not working... rmullen Excel Programming 3 January 17th 06 08:14 PM
ThisWorkbook.Path not updating Bruce Excel Programming 1 January 28th 05 04:39 AM
ThisWorkbook.Path Birdy Excel Programming 1 February 10th 04 02:50 AM


All times are GMT +1. The time now is 02:12 PM.

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"