VBA and UserForms

S

srfdggy5

Hello... I currently have a document, let's call it 'Setup.doc'. Whe
the user opens this document, it activates a userform. This for
allows the user to select any documents from 1 thru 12. The user put
a check in the check box next to the document he wants, and when don
selecting, hits a commandbutton to "generate" the final document. Th
final document is simply the documents the user selected put together.

The problem is that in the beginning of this process, from the secon
the user even opens "Setup.doc", it opens up a blank page. So, whe
all the other documents are added, the final merged document will hav
a completely blank, extra page in the beginning.

Question is How do I Remove this extra Page?? Thank you..
 
J

Jonathan West

srfdggy5 > said:
Hello... I currently have a document, let's call it 'Setup.doc'. When
the user opens this document, it activates a userform. This form
allows the user to select any documents from 1 thru 12. The user puts
a check in the check box next to the document he wants, and when done
selecting, hits a commandbutton to "generate" the final document. The
final document is simply the documents the user selected put together.

The problem is that in the beginning of this process, from the second
the user even opens "Setup.doc", it opens up a blank page. So, when
all the other documents are added, the final merged document will have
a completely blank, extra page in the beginning.

Question is How do I Remove this extra Page?? Thank you...

Try this

Selection.Move Unit:=wdStory, Count:=-1
ActiveDocument.Bookmarks("\Page").Range.Delete
 

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