![]() |
#1
|
|||
|
|||
![]() 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!!!
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Jashley1 | Word | 2 | 11-25-2014 10:36 PM |
![]() |
greasel | Word | 5 | 10-17-2014 07:04 PM |
![]() |
Pat_Hodgson | Word | 6 | 12-01-2013 04:22 PM |
![]() |
Carlabasson | Word | 2 | 03-25-2013 10:13 PM |
adding account user | donk | Outlook | 0 | 12-01-2010 06:52 AM |