Word macros template, drop down list, save button

S

SimonS

Hi all

I have a word document template that, using macros, opens up a new document
containing mail merge values retrieved from the database.

1 I want to specify (in the document template) the name of the template
that the new document opens up in.

2 I want to have a drop down list (in the template toolbar) that lists
values from the database.

3 I want a button that automatically saves the document to a folder on
the users hard drive.


Thanks in advance for any help - greatly appreciated.....

Simon
 
D

Doug Robbins

Don't want much do you? I don't understand what you mean in 1. For 2, See
the article "Load a ListBox from a Named Range in Excel using DAO" at:

http://word.mvps.org/FAQs/InterDev/FillListBoxFromXLDAO.htm

That works for Access as well with appropriate modifications.

For 3, how do you intend the filename to be supplied for saving the
document?
--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 
S

SimonS

thanks for reply Doug.

I'll check out the article for 2. Is it possible to have a drop down list
in the toolbar that contains these values?

for 3:

I will get the name of the document to be saved by using an id from the
database and the current datetime.

for 1:

The thinking behind 1 is that the save button will be in the template that
the new
document (containing the mail merge values retrieved from the database)
opens up in. So therefore in order for this save button to appear in the
document i need to specify the template it opens up in.


Hope this is clear?! thanks again for any help....

Simon
 

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