Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bfant
 
Posts: n/a
Default Can I show server name instead of drive letter?

When using the =Cell("filename") function, I would like to show the actual
server instead of a drive letter because the letter is dependent on where the
server is mapped and not all users have the same mapping. Is this possible?
  #2   Report Post  
Chad
 
Posts: n/a
Default

Try using:
\\ServerName\drive\...
where ServerName is the name of the server and drive is the appropriate
drive, and then find the file on the drive from that point.

"bfant" wrote:

When using the =Cell("filename") function, I would like to show the actual
server instead of a drive letter because the letter is dependent on where the
server is mapped and not all users have the same mapping. Is this possible?

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

And you may want to make your formula look more like:

=cell("filename",a1)

Otherwise, your formula will evaluate to the last workbook that was calculated.

You can see this if you have the same formula in A1 of sheet1 of two separate
workbooks.

Window|arrange|horizontal

(Save both workbooks and look at each of the cells after each save.)

bfant wrote:

When using the =Cell("filename") function, I would like to show the actual
server instead of a drive letter because the letter is dependent on where the
server is mapped and not all users have the same mapping. Is this possible?


--

Dave Peterson
  #4   Report Post  
bfant
 
Posts: n/a
Default

I know my original question was vague, so let me be a bit more specific.
When using =cell("filename",a1), the cell will display something like:
(G:\Folder[File]Worksheet.xls )
Instead of the drive letter, which can have any server mapped to it, I would
like the actual server name. I know this can be done using macros, but I
would like to know if there is a formula or add in that will do the same
thing.

"Dave Peterson" wrote:

And you may want to make your formula look more like:

=cell("filename",a1)

Otherwise, your formula will evaluate to the last workbook that was calculated.

You can see this if you have the same formula in A1 of sheet1 of two separate
workbooks.

Window|arrange|horizontal

(Save both workbooks and look at each of the cells after each save.)

bfant wrote:

When using the =Cell("filename") function, I would like to show the actual
server instead of a drive letter because the letter is dependent on where the
server is mapped and not all users have the same mapping. Is this possible?


--

Dave Peterson

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

Did you try Chad's suggestion of opening the file by traversing the UNC
path--not the mapped drive?

(I don't have a network to test it on.)

bfant wrote:

I know my original question was vague, so let me be a bit more specific.
When using =cell("filename",a1), the cell will display something like:
(G:\Folder[File]Worksheet.xls )
Instead of the drive letter, which can have any server mapped to it, I would
like the actual server name. I know this can be done using macros, but I
would like to know if there is a formula or add in that will do the same
thing.

"Dave Peterson" wrote:

And you may want to make your formula look more like:

=cell("filename",a1)

Otherwise, your formula will evaluate to the last workbook that was calculated.

You can see this if you have the same formula in A1 of sheet1 of two separate
workbooks.

Window|arrange|horizontal

(Save both workbooks and look at each of the cells after each save.)

bfant wrote:

When using the =Cell("filename") function, I would like to show the actual
server instead of a drive letter because the letter is dependent on where the
server is mapped and not all users have the same mapping. Is this possible?


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
bfant
 
Posts: n/a
Default

I do not want to open the file, instead I want to show the filename when the
file is printed (except instead of the drive letter, I want to see the
server). I have used macros to do this in the past, but I do not want to
have to do this in the future.
"Dave Peterson" wrote:

Did you try Chad's suggestion of opening the file by traversing the UNC
path--not the mapped drive?

(I don't have a network to test it on.)

bfant wrote:

I know my original question was vague, so let me be a bit more specific.
When using =cell("filename",a1), the cell will display something like:
(G:\Folder[File]Worksheet.xls )
Instead of the drive letter, which can have any server mapped to it, I would
like the actual server name. I know this can be done using macros, but I
would like to know if there is a formula or add in that will do the same
thing.

"Dave Peterson" wrote:

And you may want to make your formula look more like:

=cell("filename",a1)

Otherwise, your formula will evaluate to the last workbook that was calculated.

You can see this if you have the same formula in A1 of sheet1 of two separate
workbooks.

Window|arrange|horizontal

(Save both workbooks and look at each of the cells after each save.)

bfant wrote:

When using the =Cell("filename") function, I would like to show the actual
server instead of a drive letter because the letter is dependent on where the
server is mapped and not all users have the same mapping. Is this possible?

--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Dave Peterson
 
Posts: n/a
Default

Don't you have to open the file to print it?

If you just rightclick, Print (from Explorer), make sure you're looking at the
file via the UNC path.

bfant wrote:

I do not want to open the file, instead I want to show the filename when the
file is printed (except instead of the drive letter, I want to see the
server). I have used macros to do this in the past, but I do not want to
have to do this in the future.
"Dave Peterson" wrote:

Did you try Chad's suggestion of opening the file by traversing the UNC
path--not the mapped drive?

(I don't have a network to test it on.)

bfant wrote:

I know my original question was vague, so let me be a bit more specific.
When using =cell("filename",a1), the cell will display something like:
(G:\Folder[File]Worksheet.xls )
Instead of the drive letter, which can have any server mapped to it, I would
like the actual server name. I know this can be done using macros, but I
would like to know if there is a formula or add in that will do the same
thing.

"Dave Peterson" wrote:

And you may want to make your formula look more like:

=cell("filename",a1)

Otherwise, your formula will evaluate to the last workbook that was calculated.

You can see this if you have the same formula in A1 of sheet1 of two separate
workbooks.

Window|arrange|horizontal

(Save both workbooks and look at each of the cells after each save.)

bfant wrote:

When using the =Cell("filename") function, I would like to show the actual
server instead of a drive letter because the letter is dependent on where the
server is mapped and not all users have the same mapping. Is this possible?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
UDF and Calculation tree Ken Wright Links and Linking in Excel 1 February 6th 05 04:58 PM
Excel files stored on a different server Sri Excel Discussion (Misc queries) 0 February 4th 05 11:25 AM
Reflect file path (show drive letters) in Excel 2000 Alicia Excel Discussion (Misc queries) 4 January 20th 05 06:49 PM
Excel 2003 Database Driver Visual FoxPro 7 on Server 2003. Cindy Winegarden Excel Discussion (Misc queries) 0 November 28th 04 12:07 AM
Linking an entire worksheet from a restricted drive? mkichar Excel Worksheet Functions 1 November 4th 04 06:29 PM


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