Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2015, 09:35 AM
SonyaEnz SonyaEnz is offline User Form - Adding Page Break Windows 8 User Form - Adding Page Break Office 2010 32bit
Novice
User Form - Adding Page Break
 
Join Date: Jun 2015
Location: Kentucuky
Posts: 6
SonyaEnz is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 12-17-2015, 10:43 PM
gmayor's Avatar
gmayor gmayor is offline User Form - Adding Page Break Windows 10 User Form - Adding Page Break Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
  #3  
Old 12-23-2015, 07:02 AM
SonyaEnz SonyaEnz is offline User Form - Adding Page Break Windows 8 User Form - Adding Page Break Office 2010 32bit
Novice
User Form - Adding Page Break
 
Join Date: Jun 2015
Location: Kentucuky
Posts: 6
SonyaEnz is on a distinguished road
Default

Working!!! Thank you so much.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form - Adding Page Break How to add page numbering after next page break with landscape and portrait Jashley1 Word 2 11-25-2014 10:36 PM
User Form - Adding Page Break Removing space before blank page / page break greasel Word 5 10-17-2014 07:04 PM
User Form - Adding Page Break 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
User Form - Adding Page Break 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft