ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Menu Name (https://www.excelbanter.com/excel-programming/329414-menu-name.html)

Ashman

Menu Name
 
Is there anyway of using a macro to change the Microsoft Excel Menu, ie it
dispays Microsoft Excel plus the file name. I am wanting to add something in
before the file name.

Is this possible?

Jas

Ron de Bruin

Menu Name
 
Try

Application.Caption = "Hi there this is Excel and the file name is "

To restore

Application.Caption = ""




--
Regards Ron de Bruin
http://www.rondebruin.nl



"Ashman" wrote in message ...
Is there anyway of using a macro to change the Microsoft Excel Menu, ie it
dispays Microsoft Excel plus the file name. I am wanting to add something in
before the file name.

Is this possible?

Jas




Rob Bovey

Menu Name
 
"Ashman" wrote in message
...
Is there anyway of using a macro to change the Microsoft Excel Menu, ie it
dispays Microsoft Excel plus the file name. I am wanting to add something
in
before the file name.
Is this possible?


Hi Jas,

I think you are referring to the caption - the text that appears in the
blue bar at the very top of the Excel window? If so, there are two parts to
this caption:

Application.Caption = "Something Else"

changes "Microsoft Excel" to "Something Else"

ActiveWindow.Caption = "Something Else"

changes the file name to "Something Else". You can use these two separately
or together. To restore the captions to their default values, use the
following:

Application.Caption = Empty
ActiveWindow.Caption = False

I know it doesn't make much sense, but that's how it works.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm



Ashman

Menu Name
 
Many thanks works perfectly.

Jas

"Ron de Bruin" wrote:

Try

Application.Caption = "Hi there this is Excel and the file name is "

To restore

Application.Caption = ""




--
Regards Ron de Bruin
http://www.rondebruin.nl



"Ashman" wrote in message ...
Is there anyway of using a macro to change the Microsoft Excel Menu, ie it
dispays Microsoft Excel plus the file name. I am wanting to add something in
before the file name.

Is this possible?

Jas






All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com