Document name in titlebar, step by step

B

billgillies

I want to put the path and document name in Word 2003 in the title bar,
and found the following posting from a couple of years back. However,
it is a bit too cryptic for me, since i don't use VBA at all. Can
someone please take the info below and tell me step by step how i would
do this? I would like to set up a macro to do this automatically, so
if that could be explained, that would be great. Many thanks

"Switch to VBA and in the immediate window type:

windows(activedocument.Name).Caption = activedocument.FullName

You could set up a macro to do this automatically, but I suggest you
try it
manually for a while. On most machines these days, the full path is so
long
that the result will be ugly."
 
J

Jezebel

Step 1. Put that line of code into a macro.

Step 2. Run the macro.

You've got two problems: 1) as suggested in the original post, the path may
be longer than than your Window is wide. 2) You need to re-run the macro
every time you change documents. It's possible to set up your macro to do
this automatically, but if you "don't use VBA at all", writing code to trap
Word events is likely to be beyond you. It's not that it's all that hard;
but explaining it "step by step" would take quite a lot of writing.
 
B

bgillies

Jezebel said:
Step 1. Put that line of code into a macro.

Step 2. Run the macro.

You've got two problems: 1) as suggested in the original post, the path may
be longer than than your Window is wide. 2) You need to re-run the macro
every time you change documents. It's possible to set up your macro to do
this automatically, but if you "don't use VBA at all", writing code to trap
Word events is likely to be beyond you. It's not that it's all that hard;
but explaining it "step by step" would take quite a lot of writing.

Hi Jezebel.

Many thanks for your response. I have a wide monitor, so i don't
believe the full path will be a problem. Having said that, is it
possible to change the font in the titlebar (and only the titlebar), to
something such as Arial Narrow?
 
J

Jezebel

bgillies said:
Hi Jezebel.

Many thanks for your response. I have a wide monitor, so i don't
believe the full path will be a problem. Having said that, is it
possible to change the font in the titlebar (and only the titlebar), to
something such as Arial Narrow?

Right-click on the Windows desktop, select properties. On the Appearance
tab, click Advanced.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top