Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

vb in Word 97

Posted on 2000-03-24
4
Medium Priority
?
160 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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 20 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
Suggested Courses
Course of the Month20 days, 22 hours left to enroll

810 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