Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
smccoy
 
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!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Carol
 
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   Report Post  
Posted to microsoft.public.word.docmanagement
smccoy
 
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   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default How to create a text strike-through macro using a ck box to in

Hi ?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   Report Post  
Posted to microsoft.public.word.docmanagement
Greg
 
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

Reply
Thread Tools
Display Modes

Posting Rules

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 09:53 PM
Word applies direct format on File open Uriel Microsoft Word Help 16 November 27th 05 07:22 PM
create a text link using a text box for forms ClassyIrish Microsoft Word Help 12 November 21st 05 03: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 11:00 PM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"