#1
|
|||
|
|||
User Form - Adding Page Break
I have created a User Form, working good, however, there is a bookmark wherein if x = true, need to insert a page break before this bookmark so it moves to the next page. Tried creating a macro to insert a page break and then copied that code into User Form code but that didn't work. thanks for any thoughts. |
#2
|
||||
|
||||
How about
Code:
Dim oBM As Range If X = True Then Set oBM = ActiveDocument.Bookmarks("Bookmarkname").Range oBM.Collapse 1 oBM.InsertBreak wdPageBreak End If
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
Working!!! Thank you so much.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add page numbering after next page break with landscape and portrait | Jashley1 | Word | 2 | 11-25-2014 10:36 PM |
Removing space before blank page / page break | greasel | Word | 5 | 10-17-2014 07:04 PM |
First section will not 'insert' blank page even though sectn 2 is 'odd' page break | Pat_Hodgson | Word | 6 | 12-01-2013 04:22 PM |
Section Break (Next Page) replaces Section Break (Continuous) when deleted | Carlabasson | Word | 2 | 03-25-2013 10:13 PM |
adding account user | donk | Outlook | 0 | 12-01-2010 06:52 AM |