M
mcwhirt3
Hi,
I have a quasi-program that has a button to reset it in publisher,
basically it opens the main menu userform. I need the vb that does that
to first delete all the pages in the document. I believe I want to use
the pagecount property and set that to a variable, then use that
variable in this line...
noofpages=pagecount
ActiveDocument.Pages(noofpages).Delete
I can't get this to work though. Is there any better way to delete all
of the pages in a document? It must reference the pagecount property
because the project will have a variable amount of pages. Thanks for
any help.
I have a quasi-program that has a button to reset it in publisher,
basically it opens the main menu userform. I need the vb that does that
to first delete all the pages in the document. I believe I want to use
the pagecount property and set that to a variable, then use that
variable in this line...
noofpages=pagecount
ActiveDocument.Pages(noofpages).Delete
I can't get this to work though. Is there any better way to delete all
of the pages in a document? It must reference the pagecount property
because the project will have a variable amount of pages. Thanks for
any help.