Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2015, 08:32 AM
SonyaEnz SonyaEnz is offline User Form - Close Paragraphs Windows 8 User Form - Close Paragraphs Office 2010 32bit
Novice
User Form - Close Paragraphs
 
Join Date: Jun 2015
Location: Kentucuky
Posts: 6
SonyaEnz is on a distinguished road
Default User Form - Close Paragraphs

Have created so far two User Forms. They both work the way I want them, so far, but there are options a user can select. In one User Form there are 6 options. I have used bookmarks in my document instead of docvariables in the VBA (not sure which one would work better for my form in this instance).



If the user selects only option 1 and 6 then that leaves a big space. I would like that spacing to close up automatically. I have used the Help feature and found the Paragraphs.OpenOrCloseUp method but I must be entering something wrong, or not understanding their example, because nothing is closing up.

Any information is appreciated.
Reply With Quote
  #2  
Old 06-03-2015, 02:59 PM
gmaxey gmaxey is offline User Form - Close Paragraphs Windows 7 32bit User Form - Close Paragraphs Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Are your six bookmarks each defined in there own empty paragraph so that when done with your example above you have four empty bookmarks defined in four empty paragraphs?

OpenOrCloseUp is used to toggle space after paragraphs between 0 and 12 points. It does not delete empty paragraphs.

You could define one bookmark in one empty paragraph and then define your option output in a single string variable and write it to the single bookmark.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 06-04-2015, 05:27 AM
SonyaEnz SonyaEnz is offline User Form - Close Paragraphs Windows 8 User Form - Close Paragraphs Office 2010 32bit
Novice
User Form - Close Paragraphs
 
Join Date: Jun 2015
Location: Kentucuky
Posts: 6
SonyaEnz is on a distinguished road
Default Close Paragraphs

yes, my bookmarks are in a separate line paragraph leaving empty bookmarks.

I will try the defining one bookmark in one empty paragraph and then define option output in a single string variable to the single bookmark.

Thanks.
Reply With Quote
  #4  
Old 06-05-2015, 06:05 AM
SonyaEnz SonyaEnz is offline User Form - Close Paragraphs Windows 8 User Form - Close Paragraphs Office 2010 32bit
Novice
User Form - Close Paragraphs
 
Join Date: Jun 2015
Location: Kentucuky
Posts: 6
SonyaEnz is on a distinguished road
Default Close Paragraphs

Thanks. That worked and this will help with other forms I am creating. Have a few more add ins to the user form and hopefully I can get them working the way I want.

Thanks again.
Reply With Quote
  #5  
Old 06-05-2015, 06:16 AM
gmaxey gmaxey is offline User Form - Close Paragraphs Windows 7 32bit User Form - Close Paragraphs Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Glad to help.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply

Tags
close paragraphs, user forms



Similar Threads
Thread Thread Starter Forum Replies Last Post
User form abdulgani Excel 0 12-15-2014 05:54 AM
Help with macro to save / email / close form barters1972 Word VBA 1 04-20-2014 06:44 PM
User Form - Close Paragraphs Automatically generating paragraphs with form data mkellar Word 1 03-22-2013 10:10 PM
Word 2003 form fields and pasting multiple paragraphs. mwmoron Word 1 12-07-2012 11:06 PM
User Form - Close Paragraphs User Form placasse47 Excel Programming 3 08-01-2012 05:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:15 AM.


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