Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VBA Word Change Unsaved Document Name "Document 1"

Posted on 2009-05-19
2
Medium Priority
?
3,770 Views
Last Modified: 2012-05-07
I have a system that outputs a report as a Word Document so the user can modify and print without actually saving the document.
Users are opening multiple docs and their taskbars are getting cluttered with Word docs called "Document 1", "Document 2" etc. There's often the need to keep them open for a while, but at no time is there the need to save them!
What i'd ideally like to do is change that default name without saving the document (ie to the Customer Name or similar). I've tried changing the BuiltInDocumentProperties("Title") property but that doesn't change what's shown in the taskbar.

Any ideas?
0
Comment
Question by:ianmair329
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Xcone earned 800 total points
ID: 24420284
Hi,

Try using the activewindow caption
Sub ChangeWindowName()
  ActiveDocument.ActiveWindow.Caption = "MyCustomName"
End Sub

Open in new window

0
 
LVL 3

Author Closing Comment

by:ianmair329
ID: 31582923
nice work - thanks!
i'd looked through most of the properties but didnt spot that one!
thanks again
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

598 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question