T
Tonya Marshall
Is it possible to toggle bold in a locked form?
Doug said:Hi Tonya,
You could do it with a macro assigned to a button on a toolbar or to the
keyboard that unprotected the document, applied the formatting and then
reprotected the document
That doesn't sound very clear. What I want is a toggle button to unlock,Tonya said:I would like a macro assigned to a button. I've made a template that may
require a paragraph beginning with a colon to be bolded but the rest of
the paragraph not bold so it would be quicker to be able to click a
button just to do that.
Doug said:Hi Tonya,
Hi Tonya,
Is the statement that you need to be bold already in the form? If so, the
text to which you want to apply the formatting should be identified by a
bookmark so that the formatting can be applied to the .Range of the bookmark
ActiveDocument.Unprotect
If ActiveDocument.Bookmarks("test").Range.Bold = True Then
ActiveDocument.Bookmarks("test").Range.Bold = False
Else
ActiveDocument.Bookmarks("test").Range.Bold = True
End If
ActiveDocument.Protect wdAllowOnlyFormFields, NoReset
Tonya said:No. I want the user to be able to add a bolded statement to the form
like below:
(This part is already bold) STATEMENT IN FORM: This part is already in
the formfield and is not bold
I would like them to be able to add this in bold in a new paragraph:
ADDED STATEMENT IN FORM: And continue with unbolded text.
All paragraphs have 12pt. after; all of the statements are in separate
table rows with unbolded form fields following the initial bolded
statement. The rows expand with text so an additional BOLDED STATEMENT:
Can be made. But change to unbolded text following the colon.
I'm having a difficult time making clear what I would like to accomplish.
I guess what I'm trying to say is have a bold button that works like
the bold button does in an unlocked document. It would be OK to have 2
buttons: 1 to toggle to bold, 1 to toggle to unbold.
Jean-Guy Marcil wrote:
I don't get any error messages and I can see the screen jump a little
when I click the button which points to Sel_Bold, but I don't get
bold.
OK, now I see how it works. Type the text, then select what I want
bolded and click the bold button. I was trying to click the bold
button to start out bold, then click it again to turn it off.
I don't see that other word processors have anything to do with the factJean-Guy Marcil said:Tonya Marshall was telling us:
Tonya Marshall nous racontait que :
lol
Are you a WordPerfect convert, or WordStar maybe!
You may want to use an appropriate label on your button... "Toggle Selection
Bold", but then it is a bit wordy...
I don't see that other word processors have anything to do with the
fact that I wanted to be able to turn on bold, type some text then
I've never done anything like that but HTML will continue bold until youJean-Guy Marcil said:Tonya Marshall was telling us:
Tonya Marshall nous racontait que :
In the old WordStar days, and later with WordPerfect (with the Show format
codes, or something like that, I do not remember what it is called) ) you
would insert a tag to signify "Start bold here" and another to signify "end
bold here". If you did not insert the end tag, the whole document would be
bold from the point where the start tag had been inserted.
When you described what you attempted, it reminded me of those days...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.