Making a "save as button" embedded into my document

J

Jeremy

Hey all.

I'm trying to make a template for people to use at work. The basic idea is
an invoice template. I want to make it so that people can open the file in
a read only type format, fill in there details, and then save a copy of it
to another folder.

So...my question is.....

A lot of the people at work just don't seem to remember to change the
directory to a different path. I'd like to make a button of some kind at
the bottom of the document that says "Click here to Save."

So...I'm assuming its some kind of macro, but I can't seem to figure out how
to use them. Ideally the save-as box would pop up and all they have to do
is type in the file name. Or...even better....could I have it linked
somehow to the invoice number that is on the page already (one of the
required input fields) so that when they hit this save button, it
automatically saves the file as the invoice number.doc in my specified
directory on another drive?

Any tips and exaples would be greatly appreciated.

Jeremy
 
R

Rob graham

Are you aware that you could put a suitable button onto the toolbar, and
customise the look of it so that it stood out? If the document is read-only
they won't be able to save it other than 'save as'.

Rob Graham
 
J

Jeremy

Well...no, I wasn't. But here is what I've come up with so far.

I've created a macro that I borrowed from the newsgroup:

Sub macro1()
'
' macro1 Macro
' Macro created 5/25/2005 by Jeremy
'
Dim oDlg As Dialog
Set oDlg = Dialogs(wdDialogFileSaveAs)
With oDlg
.Name = "C:\Jer-Pictures\My Pictures\motorcycles" ' the directory
.Show
End With

End Sub


And then...in my document I found this command to make my button:



{MACROBUTTON Macro1 Click here to save}



And those seem to be working so far. So...the only thing I need to figure out how to do now to make this perfect is figure out how to link the save-as command, to a field box that is in my document...so it automatically saves the files as the invoice number without prompting for a file name.



And I guess the second thing would be figure out how to customize the look of the button I created, maybe make it a single click instead of a double click or something.



Thanks for the help,

Jeremy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top