#1   Report Post  
Tony
 
Posts: n/a
Default Title bar

Is there anyway to get the file path into the title bar?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

here is one way

Public WithEvents App As Application

Private Sub Workbook_Open()
Set App = Application
End Sub

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

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tony" wrote in message
...
Is there anyway to get the file path into the title bar?



  #3   Report Post  
Tom Culp
 
Posts: n/a
Default

Bob,

How would you get this set as default for all time rather that just being
workbook specific?

"Bob Phillips" wrote:

here is one way

Public WithEvents App As Application

Private Sub Workbook_Open()
Set App = Application
End Sub

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

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tony" wrote in message
...
Is there anyway to get the file path into the title bar?




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi Tom,

It isn't workbook specific as such, it will apply to all workbooks whilst
the App object is in scope, but it will only initiate if that workbook is
opened. A way around this is to put it in the Personal.xls workbook which
always gets loaded at Excel startup.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tom Culp" wrote in message
...
Bob,

How would you get this set as default for all time rather that just being
workbook specific?

"Bob Phillips" wrote:

here is one way

Public WithEvents App As Application

Private Sub Workbook_Open()
Set App = Application
End Sub

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

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tony" wrote in message
...
Is there anyway to get the file path into the title bar?






  #5   Report Post  
Tom Culp
 
Posts: n/a
Default

Thanks Bob,

We thought that might work but don't have a lot of VBA experience. Thanks
for the help!!

Bob

"Bob Phillips" wrote:

Hi Tom,

It isn't workbook specific as such, it will apply to all workbooks whilst
the App object is in scope, but it will only initiate if that workbook is
opened. A way around this is to put it in the Personal.xls workbook which
always gets loaded at Excel startup.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tom Culp" wrote in message
...
Bob,

How would you get this set as default for all time rather that just being
workbook specific?

"Bob Phillips" wrote:

here is one way

Public WithEvents App As Application

Private Sub Workbook_Open()
Set App = Application
End Sub

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

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tony" wrote in message
...
Is there anyway to get the file path into the title bar?






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
Relative Chart Title? Nick M Charts and Charting in Excel 6 June 22nd 05 09:24 PM
restore the title bar in excel? twodogsdennis Excel Discussion (Misc queries) 1 March 15th 05 02:01 PM
Changing Graph Title W/ Pivot Jenn Excel Discussion (Misc queries) 1 January 19th 05 03:42 AM
how to cell reference a Chart title Rasoul Khoshravan Azar Charts and Charting in Excel 2 January 1st 05 05:00 PM
The x-axis title is truncated in EXCEL charts 2003. Bernard Liengme Charts and Charting in Excel 0 November 26th 04 05:25 PM


All times are GMT +1. The time now is 09:41 AM.

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"