A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to see full path name of open workbook?



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 04:22 AM posted to microsoft.public.excel.misc
Joe User[_2_]
external usenet poster
 
Posts: 757
Default How to see full path name of open workbook?

Is there a simple way to see the full path name (folder and file name) of an
open workbook?

  #2  
Old March 18th, 2010, 05:10 AM posted to microsoft.public.excel.misc
Ed Ferrero[_3_]
external usenet poster
 
Posts: 102
Default How to see full path name of open workbook?

Hi Joe,

=CELL("filename",A1)

Ed Ferrero
www.edferrero.com


  #3  
Old March 18th, 2010, 03:46 PM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default How to see full path name of open workbook?

Where do you want to see this?

If you display the Web Toolbar you will see path and name if the bar.

On the Title Bar?

Add this code to Thisworkbook module.

Private Sub Workbook_Open()
ActiveWindow.Caption = ActiveWorkbook.FullName
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Caption = ""
End Sub


Gord Dibben MS Excel MVP

On Wed, 17 Mar 2010 21:22:04 -0700, "Joe User" joeu2004 wrote:

Is there a simple way to see the full path name (folder and file name) of an
open workbook?


  #4  
Old March 18th, 2010, 05:53 PM posted to microsoft.public.excel.misc
Joe User[_2_]
external usenet poster
 
Posts: 757
Default How to see full path name of open workbook?

"Gord Dibben" gorddibbATshawDOTca wrote:
If you display the Web Toolbar you will see path and name


Thanks. That will do nicely.


On the Title Bar?


Yeah, that's my preference. But it's not worth creating a Workbook_Open
macro just for this unless I want to apply it to all Excel files that I
open. Not sure if I do.

However....


Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Caption = ""
End Sub


Why bother? Just good practice to restore the default, for example if I
only want to apply this to one workbook, but not others open subsequently in
the same Excel instance? Just to show me how, in case I wanted to? (Good
idea.) Or is this an Excel requirement?(!)


----- original message -----

"Gord Dibben" gorddibbATshawDOTca wrote in message
...
Where do you want to see this?

If you display the Web Toolbar you will see path and name if the bar.

On the Title Bar?

Add this code to Thisworkbook module.

Private Sub Workbook_Open()
ActiveWindow.Caption = ActiveWorkbook.FullName
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Caption = ""
End Sub


Gord Dibben MS Excel MVP

On Wed, 17 Mar 2010 21:22:04 -0700, "Joe User" joeu2004 wrote:

Is there a simple way to see the full path name (folder and file name) of
an
open workbook?



  #5  
Old March 18th, 2010, 09:56 PM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default How to see full path name of open workbook?

Not necessary to have the BeforeClose event.

Other workbooks opened subsequently will not have the full path.


Gord


On Thu, 18 Mar 2010 10:53:27 -0700, "Joe User" joeu2004 wrote:

"Gord Dibben" gorddibbATshawDOTca wrote:
If you display the Web Toolbar you will see path and name


Thanks. That will do nicely.


On the Title Bar?


Yeah, that's my preference. But it's not worth creating a Workbook_Open
macro just for this unless I want to apply it to all Excel files that I
open. Not sure if I do.

However....


Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Caption = ""
End Sub


Why bother? Just good practice to restore the default, for example if I
only want to apply this to one workbook, but not others open subsequently in
the same Excel instance? Just to show me how, in case I wanted to? (Good
idea.) Or is this an Excel requirement?(!)


----- original message -----

"Gord Dibben" gorddibbATshawDOTca wrote in message
.. .
Where do you want to see this?

If you display the Web Toolbar you will see path and name if the bar.

On the Title Bar?

Add this code to Thisworkbook module.

Private Sub Workbook_Open()
ActiveWindow.Caption = ActiveWorkbook.FullName
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Caption = ""
End Sub


Gord Dibben MS Excel MVP

On Wed, 17 Mar 2010 21:22:04 -0700, "Joe User" joeu2004 wrote:

Is there a simple way to see the full path name (folder and file name) of
an
open workbook?



  #6  
Old March 21st, 2010, 08:29 PM posted to microsoft.public.excel.misc
Chip Pearson
external usenet poster
 
Posts: 1,343
Default How to see full path name of open workbook?

Put the following code in the ThisWorkbook module of your Personal.xls
workbook (or any other workbook that is normally always open).

Private WithEvents App As Excel.Application

Private Sub App_WindowActivate(ByVal Wb As Workbook, _
ByVal Wn As Window)
Wn.Caption = Wb.FullName
End Sub

Private Sub Workbook_Open()
Set App = Application
End Sub

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com



On Wed, 17 Mar 2010 21:22:04 -0700, "Joe User" joeu2004 wrote:

Is there a simple way to see the full path name (folder and file name) of an
open workbook?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.