![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
MrExcel MVP
Join Date: May 2002
Location: UK
Posts: 3,333
|
Hi all,
As most of you will know, its possible to put your own title in the blue bar at the top of the Excel window with the following code: Application.Caption = "MyCaption" However, the Excel filename then follows on after the caption. Is there anyway to stop this from happening? Cheers, Richie |
|
|
|
|
|
#2 |
|
New Member
Join Date: May 2002
Posts: 11
|
where do you put that code?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
crt
Try putting it in the immediate window like I did. RET79 |
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 11
|
? Where ?
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
Go to visual basic editor (if you are on excel press Alt&F11). Then press control&G and type the code in the window that pops up then press enter.
RET79 |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi Richie.
This will display the string you assign without any baggage.. Sub MsgOnly() ActiveWindow.Caption = "" Application.Caption = "Hello to all!" End Sub Output: Hello to all! With no file or application name. Tom |
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: May 2002
Location: UK
Posts: 3,333
|
Application.Caption = "Cheers Tom, just what I wanted!"
Richie |
|
|
|
|
|
#8 |
|
New Member
Join Date: Feb 2003
Posts: 39
|
Thought I'd piggy back my 'caption' question here. I'm trying to understand what caption means. I did a search on the text "activewindow.caption" and rec'd this thread as search result.
In reading the above posts, I am now of the opinion that "activewindow.caption" reads the bar at the top of the page (default color bule?) for the name of the active wiindow file name? Am I close? |
|
|
|
|
|
#9 |
|
New Member
Join Date: Feb 2003
Posts: 39
|
Thought I'd piggy back my 'caption' question here. I'm trying to understand what caption means. I did a search on the text "activewindow.caption" and rec'd this thread as a search result.
In reading the above posts, I am now of the opinion that "activewindow.caption" reads the bar at the top of the page (default color blue?) for the name of the active wiindow file name? Am I close? |
|
|
|
|
|
#10 |
|
New Member
Join Date: Feb 2003
Posts: 39
|
Thought I'd piggy back my 'caption' question here. I'm trying to understand what caption means. I did a search on the text "activewindow.caption" and rec'd this thread as a search result.
In reading the above posts, I am now of the opinion that "activewindow.caption" reads the bar at the top of the page (default color blue?) for the name of the active wiindow file name? Am I close? |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|