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

The workbook I am working with is not stored on my local PC's drive but is
filed on a server. When I use Workbook.Path it returns my local drive letter
(e.g. G:\temp). Of course the letter is different for different user. How
can I convert this path to a path with the server name (e.g.
\\Server01\temp).

Thanks for your help
Fred


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Workbook.Path

Fred,
http://vbnet.mvps.org/code/network/u...appeddrive.htm

NickHK

"Fred" <leavemealone@home wrote in message
...
The workbook I am working with is not stored on my local PC's drive but is
filed on a server. When I use Workbook.Path it returns my local drive

letter
(e.g. G:\temp). Of course the letter is different for different user. How
can I convert this path to a path with the server name (e.g.
\\Server01\temp).

Thanks for your help
Fred




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Workbook.Path

Thanks Nik, that worked fine.

Fred

"NickHK" wrote in message
...
Fred,
http://vbnet.mvps.org/code/network/u...appeddrive.htm

NickHK

"Fred" <leavemealone@home wrote in message
...
The workbook I am working with is not stored on my local PC's drive but
is
filed on a server. When I use Workbook.Path it returns my local drive

letter
(e.g. G:\temp). Of course the letter is different for different user. How
can I convert this path to a path with the server name (e.g.
\\Server01\temp).

Thanks for your help
Fred






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Workbook.Path

you can use something like this

dim fpath as string
fPath = ThisWorkbook.Path & "\"

on my server for example, ifpath will return this:

N:\My Documents\Excel\
--


Gary


"Fred" <leavemealone@home wrote in message
...
The workbook I am working with is not stored on my local PC's drive but is
filed on a server. When I use Workbook.Path it returns my local drive letter
(e.g. G:\temp). Of course the letter is different for different user. How can
I convert this path to a path with the server name (e.g. \\Server01\temp).

Thanks for your help
Fred




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
New Workbook Path exceluserforeman Excel Discussion (Misc queries) 2 December 7th 05 12:10 AM
Workbook path nc Excel Discussion (Misc queries) 2 April 4th 05 03:37 PM
Help with workbook path Grandad Excel Programming 5 October 13th 04 03:40 PM
path of workbook fabalicious[_8_] Excel Programming 8 April 16th 04 05:27 PM
Workbook Path Todd Huttenstine[_2_] Excel Programming 5 December 27th 03 10:02 AM


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