Solved

vb in Word 97

Posted on 2000-03-24
4
132 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Use Multiple Forms 4 57
SSRS expression Issue finding a string 10 76
Excel - Save a copy of work book 13 84
Visual Studio search word table and return Cell index 8 60
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

813 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

17 Experts available now in Live!

Get 1:1 Help Now