Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

Document name in titlebar, step by step

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
billgillies@gmail.com - 29 Nov 2006 04:14 GMT
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."
Jezebel - 29 Nov 2006 08:16 GMT
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.

>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,
[quoted text clipped - 12 lines]
> long
> that the result will be ugly."
bgillies - 29 Nov 2006 16:45 GMT
> Step 1. Put that line of code into a macro.
>
[quoted text clipped - 6 lines]
> 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?
Jezebel - 29 Nov 2006 20:24 GMT
>> Step 1. Put that line of code into a macro.
>>
[quoted text clipped - 15 lines]
> 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.
Graham Mayor - 29 Nov 2006 09:01 GMT
See http://www.gmayor.com/installing_macro.htm

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> 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.
[quoted text clipped - 13 lines]
> long
> that the result will be ugly."

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.