- My Forums
- Tiger Rant
- LSU Recruiting
- SEC Rant
- Saints Talk
- Pelicans Talk
- More Sports Board
- Fantasy Sports
- Golf Board
- Soccer Board
- O-T Lounge
- Tech Board
- Home/Garden Board
- Outdoor Board
- Health/Fitness Board
- Movie/TV Board
- Book Board
- Music Board
- Political Talk
- Money Talk
- Fark Board
- Gaming Board
- Travel Board
- Food/Drink Board
- Ticket Exchange
- TD Help Board
Customize My Forums- View All Forums
- Show Left Links
- Topic Sort Options
- Trending Topics
- Recent Topics
- Active Topics
Started By
Message
Question about Macros in Microsoft Word
Posted on 3/26/17 at 9:53 pm
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?
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 on 3/26/17 at 11:08 pm to LSUtoOmaha
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).
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).
Popular
Back to top
1





