Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is it possible to get full file path in titlebar?

I use a CAD program that show the open file's full path in the active
window's title bar. Very useful for knowing exactly where the file came from.
Is that feature available in any of the MS Office modules?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Is it possible to get full file path in titlebar?

' normal module
Dim clAppEvents As Class1

Sub StartAppEvents()
Set clAppEvents = New Class1
Set clAppEvents.xl = Excel.Application
End Sub

' Class named Class1
Public WithEvents xl As Excel.Application

Private Sub xl_WorkbookActivate(ByVal Wb As Workbook)
xl.Caption = Wb.FullName
'or
'xl.Windows(1).Caption = Wb.FullName
End Sub

run StartAppEvents from a workbook open event. Code could go in any
workbook, eg Personal.xls or an addin.

Regards,
Peter T

"screenwriter" wrote in message
...
I use a CAD program that show the open file's full path in the active
window's title bar. Very useful for knowing exactly where the file came

from.
Is that feature available in any of the MS Office modules?



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
How to Display Full Path for File Diplayed at Top Of Workbook XRacr Excel Discussion (Misc queries) 1 February 1st 07 08:41 PM
Keep full file path in cell reference dan Excel Discussion (Misc queries) 0 December 6th 06 12:26 AM
full path of excel file Song Excel Discussion (Misc queries) 2 August 21st 05 06:50 PM
Full Pathname in Titlebar Greg Setting up and Configuration of Excel 3 March 25th 05 01:49 AM
Getting the full path when from a File Open Dialog Box Ric Payne Excel Programming 3 July 10th 03 04:58 PM


All times are GMT +1. The time now is 11:24 AM.

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"