ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Suppress File Name (https://www.excelbanter.com/excel-programming/319934-suppress-file-name.html)

Francis Ang[_3_]

Suppress File Name
 
Is there a way to suppress the file name appearing the title bar of a
workbook using VBA? I know how to change the description appearing in the
title bar by using 'Application.Caption="My Description"' but cannot suppress
the file name.

Any help is very much appreciated.

Thanks.

Frank Kabel

Suppress File Name
 
Hi
don't think ou can do this with plain VBA. This would require some Windows
API calls

--
Regards
Frank Kabel
Frankfurt, Germany
"Francis Ang" schrieb im Newsbeitrag
...
Is there a way to suppress the file name appearing the title bar of a
workbook using VBA? I know how to change the description appearing in the
title bar by using 'Application.Caption="My Description"' but cannot
suppress
the file name.

Any help is very much appreciated.

Thanks.




Norman Jones

Suppress File Name
 
Hi Francis,

Try:

ActiveWindow.Caption = ""

---
Regards,
Norman



"Francis Ang" wrote in message
...
Is there a way to suppress the file name appearing the title bar of a
workbook using VBA? I know how to change the description appearing in the
title bar by using 'Application.Caption="My Description"' but cannot
suppress
the file name.

Any help is very much appreciated.

Thanks.




Sharad

Suppress File Name
 

The application Title Bar consists of Application.Caption &
Window.Caption.
So you set Application.Caption to what you want. After that you need to
set Window.Caption to blank ("").
e.g.

Dim W
For each W in Application.Windows
W.Caption = ""
Next W

Sharad

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Francis Ang[_3_]

Suppress File Name
 
It worked! Thank you very much Norman.

"Norman Jones" wrote:

Hi Francis,

Try:

ActiveWindow.Caption = ""

---
Regards,
Norman



"Francis Ang" wrote in message
...
Is there a way to suppress the file name appearing the title bar of a
workbook using VBA? I know how to change the description appearing in the
title bar by using 'Application.Caption="My Description"' but cannot
suppress
the file name.

Any help is very much appreciated.

Thanks.





Francis Ang[_3_]

Suppress File Name
 
Thank you for trying and your time.

"Frank Kabel" wrote:

Hi
don't think ou can do this with plain VBA. This would require some Windows
API calls

--
Regards
Frank Kabel
Frankfurt, Germany
"Francis Ang" schrieb im Newsbeitrag
...
Is there a way to suppress the file name appearing the title bar of a
workbook using VBA? I know how to change the description appearing in the
title bar by using 'Application.Caption="My Description"' but cannot
suppress
the file name.

Any help is very much appreciated.

Thanks.





Francis Ang[_3_]

Suppress File Name
 
Thanks Sharad for the help.

"Sharad" wrote:


The application Title Bar consists of Application.Caption &
Window.Caption.
So you set Application.Caption to what you want. After that you need to
set Window.Caption to blank ("").
e.g.

Dim W
For each W in Application.Windows
W.Caption = ""
Next W

Sharad

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



All times are GMT +1. The time now is 11:04 PM.

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