Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2015, 05:25 PM
Eduardo Care Eduardo Care is offline Delete Text when selected. Windows 8 Delete Text when selected. Office 2010 64bit
Advanced Beginner
Delete Text when selected.
 
Join Date: Aug 2015
Location: Cali
Posts: 32
Eduardo Care is on a distinguished road
Default Delete Text when selected.

Hi everyone,



Im working on a protected document, so it have few parts that can be edited, those parts are merely instructions for the users who fill the documents.

What im trying to do is add a macro to the document, so when the user click over that instruction text, it gets automatically deleted so the user don't lose time deleting that text and changing the color of the font (since the instruction text is generally red, the users have to change the font after deleting)

Anyone can tell me how to do this or send me to link with this kind of information?


Thanks in advance.
Reply With Quote
  #2  
Old 11-03-2015, 05:49 PM
macropod's Avatar
macropod macropod is offline Delete Text when selected. Windows 7 64bit Delete Text when selected. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If you delete the instruction text, there's no font left to change colour...

In any event, Word doesn't have an event to trap to tell it that you've clicked on something. What you could do is to add the instructions to a formfield or content control (depending on what you're using), with an 'on entry' macro that toggles the content's display.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Text when selected. Keep text selected after paste dabbler Word 14 01-11-2021 09:54 AM
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
Custome animation on selected text mahju PowerPoint 1 08-26-2014 01:03 PM
Delete Text when selected. Macro Delete Selected Text smonczka Word VBA 2 11-05-2011 03:18 AM
Delete Text when selected. Do NOT print selected text Tracy Word 2 09-11-2011 07:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:47 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