Page 1
Page 1
Started By
Message

Question about Macros in Microsoft Word

Posted on 3/26/17 at 9:53 pm
Posted by LSUtoOmaha
Nashville
Member since Apr 2004
26733 posts
Posted on 3/26/17 at 9:53 pm
I searched Microsoft forums, but couldn't find anything.

Currently, I have a button, that when clicked, removes form fields from a document.

My goal is for the form fields to be removed automatically when a certain piece of text goes away. In other words, I don't want to have to click the button every time.

Is this possible?
This post was edited on 3/26/17 at 9:54 pm
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3951 posts
Posted on 3/26/17 at 11:08 pm to
I do more macro work in Excel, but Word should be very similar.

You simply need to assign your macro to an event. There should be an event for a document change. Just put your macro here, and include an if statement to only run when your specific text is entered or removed from that field.

There may be other event triggers more fitting. I'm just not familiar with what's available. For example in Acrobat, it would be assigned to "On Blur", which is when the user moves out of the text field (by clicking or tabbing).
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookXInstagram