entwined
02-10-2012, 11:53 PM
Hi VB'ers,
I need a macro that will quickly apply tags (kind of html tags but its a custom tag) in a word file. So it's like when I execute the macro assigned in a hotkey, a certain tag will be automatically typed. Example scenario is:
1. When I press Alt+U right at the beginning of any data (e.g. 004.P1.001), the macro will type a tag (e.g. <UniID>). The output of that will be -- <UniID>004.P1.001
2. That's just the start tag right, so there should be an end tag </UniID> and that will be applied at the end of the data by pressing ENTER key only. So I will press ENTER at the end of it and the output will be now -- <UniID>004.P1.001</UniID>
Would that be possible? I pray so. Please help :( . Any input will be very much appreciated. Thanks...
I need a macro that will quickly apply tags (kind of html tags but its a custom tag) in a word file. So it's like when I execute the macro assigned in a hotkey, a certain tag will be automatically typed. Example scenario is:
1. When I press Alt+U right at the beginning of any data (e.g. 004.P1.001), the macro will type a tag (e.g. <UniID>). The output of that will be -- <UniID>004.P1.001
2. That's just the start tag right, so there should be an end tag </UniID> and that will be applied at the end of the data by pressing ENTER key only. So I will press ENTER at the end of it and the output will be now -- <UniID>004.P1.001</UniID>
Would that be possible? I pray so. Please help :( . Any input will be very much appreciated. Thanks...