Solved

vb in Word 97

Posted on 2000-03-24
4
130 Views
Last Modified: 2010-05-02
Hi all, is it possible to use vba in word 97 to automatically load up and display the File -> Save As     browser window for the user to browse through and choose the directory where he wants to save the file, everytime a user opens a particular document.
Thanks for any help.
0
Comment
Question by:Rocheval
  • 2
  • 2
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 5 total points
ID: 2656311
Add this Code into the ThisDocument module using the Visual Basic Editor (Alt+F11)
Private Sub Document_Open()
  Application.Dialogs(wdDialogFileSaveAs).Show
End Sub

If you want this in the template, then
Private Sub Document_New()
  Application.Dialogs(wdDialogFileSaveAs).Show
End Sub
0
 

Author Comment

by:Rocheval
ID: 2663339
Thanks angel for answering :)
But is there a way such that File
-> Save As window loads up and appears only when the user opens the parent document and not when the user opens the saved child documents?
The problem occurs because the file-saving code carries over to the saved documents as well.
Thanks for any help.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2663448
What do you call Parant Document? Does it not correspond to a Word Template.
If it does, then only copy the code for the event Document_New() to the template (file.dot).
You may change the filename extention from .doc to .dot to make a document a template
0
 

Author Comment

by:Rocheval
ID: 2668457
Thanks Angel for all your help!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now