Button to add new page with a form

Z

ZABU

HI,

I would like to create a document that has a command button that will create
a page break and insert a file to the new page and keep the command button
at the bottom of the page so the procedure can be repeated on a daily basis.
Any ideas?

Thanks in advance!

ZABU
 
C

Cindy M -WordMVP-

Hi Zabu,
I would like to create a document that has a command button that will create
a page break and insert a file to the new page and keep the command button
at the bottom of the page so the procedure can be repeated on a daily basis.
That shouldn't be a problem.

1. Make sure you format the command button to be "inline" with the text

2. Set a RANGE to the line just above the command button and insert the file
to that range. Very roughly:

Private Sub CommandButton1_Click()
Dim rng As Word.Range

Set rng = Selection.Range
rng.MoveEnd wdParagraph, -2
rng.InsertFile 'etc.
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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