|
-
May 2nd, 2013, 12:07 PM
#1
Thread Starter
New Member
[RESOLVED] Center a portion of a Docvariable
I am attempting to rewrite some very old Word perfect/HotDocs forms into Word.
I have checkboxes set up that the user can select whether or not they want a section included for one set of checkboxes i would like the set up to look something like this if checked:
SECTION TITLE
Text here
If it's not checked I want the section to disappear entirely. I dont want extra returns within every section if the box is not selected. DocVariables have worked well for me for everything else in the document simply by saying If the checbox is not checked docvariable.Value= " ". I haven't used VB for about 10 years so Im open to any suggestions if theres something better than DocVariables for this task.
-
May 3rd, 2013, 06:42 PM
#2
Re: Center a portion of a Docvariable
change the font of section to hidden when box checked /unchecked
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
May 6th, 2013, 03:01 PM
#3
Thread Starter
New Member
Re: Center a portion of a Docvariable
Thanks, very simple. I'm disappointed i didn't think of that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|