Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Stefan
 
Posts: n/a
Default Full path-name in title bar ?

Hello,

Is it possible to put the full path name of the opened file in the bleu
title bar from excel, this always en automatically.

-- Microsoft Excel - c:/data/stefan/filename instead of Microsoft Excel -
filename


Many thanks
Stefan
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Full path-name in title bar ?


Public WithEvents App As Application

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

Private Sub App_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean)
App_WindowActivate Wb, Windows(Wb.Name)
End Sub

Private Sub Workbook_Open()
Set App = Application
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

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefan" <123@abc wrote in message
...
Hello,

Is it possible to put the full path name of the opened file in the bleu
title bar from excel, this always en automatically.

-- Microsoft Excel - c:/data/stefan/filename instead of Microsoft

Excel -
filename


Many thanks
Stefan



  #3   Report Post  
Posted to microsoft.public.excel.misc
Stefan
 
Posts: n/a
Default Full path-name in title bar ?

Thanks Bob,

I get the full name, except i've got a 'subscript out of range' error as
soon as i close a window.

Secondly, i have to open that specific file first before the full path
appears.

Stefan
  #4   Report Post  
Posted to microsoft.public.excel.misc
Stefan
 
Posts: n/a
Default Full path-name in title bar ?

Bob,

With an 'on error goto' statement i can prevent that 'subscript out of
range' error. Complete path-name still occurs.

The second problem was solved by saving the file in the 'XLStart' directory
of Microsoft Office and put an extra program line so that Excel automatically
starts with that file and immediately minimizes the windowstate of it.

Again thanks for putting me on the way.
Stefan
  #5   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Full path-name in title bar ?

Stefan,

I would have put it in Personal.xls, not have another file opened.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefan" <123@abc wrote in message
...
Bob,

With an 'on error goto' statement i can prevent that 'subscript out of
range' error. Complete path-name still occurs.

The second problem was solved by saving the file in the 'XLStart'

directory
of Microsoft Office and put an extra program line so that Excel

automatically
starts with that file and immediately minimizes the windowstate of it.

Again thanks for putting me on the way.
Stefan





  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Full path-name in title bar ?

Just wondering why you included this routine:

Private Sub App_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean)
App_WindowActivate Wb, Windows(Wb.Name)
End Sub

The captions seem to get updated fine without it.



Bob Phillips wrote:

Stefan,

I would have put it in Personal.xls, not have another file opened.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefan" <123@abc wrote in message
...
Bob,

With an 'on error goto' statement i can prevent that 'subscript out of
range' error. Complete path-name still occurs.

The second problem was solved by saving the file in the 'XLStart'

directory
of Microsoft Office and put an extra program line so that Excel

automatically
starts with that file and immediately minimizes the windowstate of it.

Again thanks for putting me on the way.
Stefan


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
Stefan
 
Posts: n/a
Default Full path-name in title bar ?

"Bob Phillips" wrote:

Stefan,

I would have put it in Personal.xls, not have another file opened.

--
HTH


Can you give me some more information, i cant follow.
Is personal.xls the name of that file and in which directory must i save it??

thnx
Stefan
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Full path-name in title bar ?

Would you please show your complete code? Thanks.

"Stefan" wrote:

Bob,

With an 'on error goto' statement i can prevent that 'subscript out of
range' error. Complete path-name still occurs.

The second problem was solved by saving the file in the 'XLStart' directory
of Microsoft Office and put an extra program line so that Excel automatically
starts with that file and immediately minimizes the windowstate of it.

Again thanks for putting me on the way.
Stefan

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Full path-name in title bar ?

Who are you asking Jack, Stefan or me?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Jack Mills" wrote in message
...
Would you please show your complete code? Thanks.

"Stefan" wrote:

Bob,

With an 'on error goto' statement i can prevent that 'subscript out of
range' error. Complete path-name still occurs.

The second problem was solved by saving the file in the 'XLStart'
directory
of Microsoft Office and put an extra program line so that Excel
automatically
starts with that file and immediately minimizes the windowstate of it.

Again thanks for putting me on the way.
Stefan



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Full path-name in title bar ?

Can something be added to update the Path in the title bar when you save the
workbook as a different file name?

"Bob Phillips" wrote:


Public WithEvents App As Application

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

Private Sub App_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean)
App_WindowActivate Wb, Windows(Wb.Name)
End Sub

Private Sub Workbook_Open()
Set App = Application
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

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefan" <123@abc wrote in message
...
Hello,

Is it possible to put the full path name of the opened file in the bleu
title bar from excel, this always en automatically.

-- Microsoft Excel - c:/data/stefan/filename instead of Microsoft

Excel -
filename


Many thanks
Stefan






  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default Full path-name in title bar ?



"Stefan" wrote:

Hello,

Is it possible to put the full path name of the opened file in the bleu
title bar from excel, this always en automatically.

-- Microsoft Excel - c:/data/stefan/filename instead of Microsoft Excel -
filename


Many thanks
Stefan

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
Full path in title bar ntoze Excel Discussion (Misc queries) 1 April 18th 06 04:18 PM
Full path in title bar ntoze Excel Discussion (Misc queries) 0 February 21st 06 07:26 PM
Can the full path be shown in the Title Bar? markvi Excel Discussion (Misc queries) 3 November 23rd 05 05:29 PM
Show full path title in title bar? Nor New Users to Excel 4 November 4th 05 06:00 PM
How to change the Excel Title Bar to show the full file path na... lmilkey8855 Excel Discussion (Misc queries) 2 January 6th 05 03:08 PM


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