Workbook.Path

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

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
 
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\
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top