Results 1 to 3 of 3
2016-05-24, 20:20 #1
- Join Date
- May 2016
- Thanked 0 Times in 0 Posts
Macro for Word 365 - adding quotations before and after text
I am new to the world of macros - I've just learned about recording them and I'm pretty excited by the possibilities!
I have multiple reports to write, each of which requires me to take multiple short paragraphs and format them. I have created a macro that allows me to bold, italicise etc in one go, but is there any way that I can insert double quotation marks both before and after each comment? And ideally I'd like to find a way to make sure that there is a full-stop at the end of the paragraph/sentence.
my manager needs to stop micromanaging me --> "My manager needs to stop micro-managing me."
I am using Word 365 but hopefully this shouldn't impact macro usage...right?
Any help here would be so greatly appreciated!
2016-05-24, 23:23 #2
- Join Date
- May 2002
- Canberra, Australian Capital Territory, Australia
- Thanked 428 Times in 353 Posts
How would Word identify where a comment starts/ends?
I have created a macro that allows me to bold, italicise etc in one goCheers,
[MS MVP - Word]
2016-05-28, 09:41 #3
As Macropod implies, you should familiarize yourself with templates and styles first. Get those essential foundations working solidly before you start automating. Trying to automate poorly constructed documents is a frustrating time sink.
Record a macro which globally replaces
That will cause double quotes at the beginning and end of each paragraph [^p is the code for the paragraph mark, I recommend you turn on viewing them, and other formatting marks, as your default].
a way to make sure that there is a full-stop at the end of the paragraph/sentence.
1. In case there are ellipses represented by three separate dots, first global replace
2. Global replace
3. Global replace
Make sure you do each global replace more than once, to ensure that all instances are caught.
But I strongly advise getting to grips with templates and styles before doing much automation, they're the key to reliable efficient and productive use of Word.Lugh.
Windows 10 Pro x64 1607; Office 2016 (365 Home) x32; Win Defender, MBAM Pro
ASRock H97 Anniversary; Xeon E3-1231V3 (like i7)
Gigabyte GeForce GTX 970; 12GB Crucial DDR3 1600
Logitech MX Master mouse; Roccat Isku kb