Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default Path name in title bar-READ ONLY prob

I have a tough one...I put the code
ActiveWindow.Caption = ActiveWorkbook.FullName
in a workbook......however, if the file comes up as "read-only" the (read
only) message is gone from the title bar.....it is very important that users
see that they are in a "read only" file....is there any way to get the full
path name & the read only message to appear in the title bar?
Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Path name in title bar-READ ONLY prob

Try something like


Dim WB As Workbook
Set WB = ActiveWindow.Parent
If WB.ReadOnly = True Then
ActiveWindow.Caption = "My Text (read only)"
Else
ActiveWindow.Caption = "My Text"
End If



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Deeds" wrote in message
...
I have a tough one...I put the code
ActiveWindow.Caption = ActiveWorkbook.FullName
in a workbook......however, if the file comes up as "read-only"
the (read
only) message is gone from the title bar.....it is very
important that users
see that they are in a "read only" file....is there any way to
get the full
path name & the read only message to appear in the title bar?
Thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default Path name in title bar-READ ONLY prob

Very good! Thanks much!

"Chip Pearson" wrote:

Try something like


Dim WB As Workbook
Set WB = ActiveWindow.Parent
If WB.ReadOnly = True Then
ActiveWindow.Caption = "My Text (read only)"
Else
ActiveWindow.Caption = "My Text"
End If



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Deeds" wrote in message
...
I have a tough one...I put the code
ActiveWindow.Caption = ActiveWorkbook.FullName
in a workbook......however, if the file comes up as "read-only"
the (read
only) message is gone from the title bar.....it is very
important that users
see that they are in a "read only" file....is there any way to
get the full
path name & the read only message to appear in the title bar?
Thanks in advance!




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-name in title bar ? Stefan Excel Discussion (Misc queries) 14 January 13th 10 11:00 AM
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


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