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

Hi everyone. The below piece of code checks to see if the current open file
name is the same as a file name in a server folder.

If LCase(file) < LCase(ThisWorkbook.FullName) Then

If LCase(file) returns a server path like \\servera\folder\folder\folder

LCase(ThisWorkbook.FullName) returns a path like G:\folder\folder\folder

They are the same thing, but according to vb are different. How can I get
LCase(ThisWorkbook.FullName) to return \\servera\folder\folder\folder??


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default ThisWorkbook.FullName

What you want is...

ThisWorkbook.Path

HTH,
Gary Brown


"Steph" wrote:

Hi everyone. The below piece of code checks to see if the current open file
name is the same as a file name in a server folder.

If LCase(file) < LCase(ThisWorkbook.FullName) Then

If LCase(file) returns a server path like \\servera\folder\folder\folder

LCase(ThisWorkbook.FullName) returns a path like G:\folder\folder\folder

They are the same thing, but according to vb are different. How can I get
LCase(ThisWorkbook.FullName) to return \\servera\folder\folder\folder??



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default ThisWorkbook.FullName

Hi Gary. This Workbook.Path gives me the same thing as Fullname, which is
the G:\ rather than the \\servera\

"Gary Brown" wrote in message
...
What you want is...

ThisWorkbook.Path

HTH,
Gary Brown


"Steph" wrote:

Hi everyone. The below piece of code checks to see if the current open

file
name is the same as a file name in a server folder.

If LCase(file) < LCase(ThisWorkbook.FullName) Then

If LCase(file) returns a server path like \\servera\folder\folder\folder

LCase(ThisWorkbook.FullName) returns a path like G:\folder\folder\folder

They are the same thing, but according to vb are different. How can I

get
LCase(ThisWorkbook.FullName) to return \\servera\folder\folder\folder??





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default ThisWorkbook.FullName

Here's a link to a couple of posts from Jim Rech and Tom Ogilvy about how to
convert the drive letter to the UNC path:

http://groups.google.com/groups?thre...%40cppssbbsa06



Steph wrote:

Hi everyone. The below piece of code checks to see if the current open file
name is the same as a file name in a server folder.

If LCase(file) < LCase(ThisWorkbook.FullName) Then

If LCase(file) returns a server path like \\servera\folder\folder\folder

LCase(ThisWorkbook.FullName) returns a path like G:\folder\folder\folder

They are the same thing, but according to vb are different. How can I get
LCase(ThisWorkbook.FullName) to return \\servera\folder\folder\folder??


--

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
Insert ThisWorkBook.FullName as Link in Email jlclyde Excel Discussion (Misc queries) 3 February 4th 09 02:08 AM
Seperating Text in One Field into 2 Fields EG FullName SunRay Excel Discussion (Misc queries) 1 September 11th 07 07:30 AM
Excel 2000 VBA ActiveWorkbook.FullName Dave Stanwick Excel Programming 2 December 12th 03 03:16 PM
Split fullname into Drive, Path and Filename Michael Göhring Excel Programming 2 December 12th 03 12:56 PM
Looking for Excel function to resolve userid to fullname. steve Excel Programming 0 September 17th 03 07:37 PM


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

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"