A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to create a text strike-through macro using a ck box to initia



 
 
Thread Tools Display Modes
  #1  
Old March 8th 06, 05:55 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default How to create a text strike-through macro using a ck box to initia

I am working with real-estate contracts and there are times when a paragraph
(or part of) can be deleted. I would like to put a check box to the side
that when checked, will strike-through the test that can be deleted. Any
thoughts? Thanks!
Ads
  #2  
Old March 8th 06, 05:59 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default How to create a text strike-through macro using a ck box to initia

Why not just highlight the paragraph and right-click and select font and
select strike through or just create a macro to do that for you?
--
Carol A. Bratt, MCP



"smccoy" wrote:

I am working with real-estate contracts and there are times when a paragraph
(or part of) can be deleted. I would like to put a check box to the side
that when checked, will strike-through the test that can be deleted. Any
thoughts? Thanks!

  #3  
Old March 8th 06, 06:13 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default How to create a text strike-through macro using a ck box to in

Good idea, but I'm working on a document that has form fields and the doc
will be password protected, so the end user can't make any changes to the
text. I know I saw it done somewhere, I just can't for the life of me
remember where I saw it, 'cause if I did, then I might be able to reverse
engineer it!

/steve

"Carol" wrote:

Why not just highlight the paragraph and right-click and select font and
select strike through or just create a macro to do that for you?
--
Carol A. Bratt, MCP



"smccoy" wrote:

I am working with real-estate contracts and there are times when a paragraph
(or part of) can be deleted. I would like to put a check box to the side
that when checked, will strike-through the test that can be deleted. Any
thoughts? Thanks!

  #4  
Old March 8th 06, 06:27 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default How to create a text strike-through macro using a ck box to in

Hi =?Utf-8?B?c21jY295?=,

I'm working on a document that has form fields and the doc
will be password protected, so the end user can't make any changes to the
text. I know I saw it done somewhere, I just can't for the life of me
remember where I saw it, 'cause if I did, then I might be able to reverse
engineer it!

You should address this to one of the word.vba newsgroups. Since this is an
end-user group, you're more likely to get quick help there. You need to include the
version of Word you're working with.

Right off hand, I'd say look at the checkboxes in the Control Toolbox. Try putting
one in a FRAME (from the Forms toolbar). The reason I suggest this is that these
have an event that will fire when the checkbox is clicked. The form fields only
trigger when the user enters or exits.

On my website, in the Forms section, you'll find the basic code for
unprotecting/reprotecting without losing user input. Record a macro to apply the
font formatting, and put that between the unprotect/reprotect lines.

Why not just highlight the paragraph and right-click and select font and
select strike through or just create a macro to do that for you?
--
Carol A. Bratt, MCP

I am working with real-estate contracts and there are times when a paragraph
(or part of) can be deleted. I would like to put a check box to the side
that when checked, will strike-through the test that can be deleted. Any
thoughts? Thanks!



Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in
the newsgroup and not by e-mail :-)

  #5  
Old March 8th 06, 07:11 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default How to create a text strike-through macro using a ck box to in

Using the checkbox in a frame method as Cindy suggested, you could
bookmark the text (call it "Test") and use a macro something like this.

Private Sub CheckBox1_Change()
ActiveDocument.Unprotect
If Me.CheckBox1.Value = -1 Then
ActiveDocument.Bookmarks("Test").Range.Font.Strike Through = True
Else
ActiveDocument.Bookmarks("Test").Range.Font.Strike Through = False
End If
ActiveDocument.Protect wdAllowOnlyFormFields, NoReset:=True
End Sub

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Way to hide text without hidden text font? [email protected] Microsoft Word Help 6 December 11th 05 10:53 PM
Word applies direct format on File open Uriel Microsoft Word Help 16 November 27th 05 08:22 PM
create a text link using a text box for forms ClassyIrish Microsoft Word Help 12 November 21st 05 04:51 AM
How can I create a macro to find and replace text attributes? pubgal23 Microsoft Word Help 3 September 8th 05 06:09 AM
Possible to create a Macro for text inserts??? Chief 187 Microsoft Word Help 1 August 17th 05 12:18 AM


All times are GMT +1. The time now is 01:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.