Solved

vb in Word 97

Posted on 2000-03-24
4
139 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
[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
  • 2
4 Comments
 
LVL 143

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 143

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

691 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