View Single Post
 
Old 03-25-2018, 01:41 AM
sarah2020 sarah2020 is offline Windows 10 Office 2016
Novice
 
Join Date: Mar 2018
Posts: 15
sarah2020 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Yes, but that is only so because the macro I wrote reformats the document that way. Although I agree that having an empty paragraph is generally undesirable, one also has to weigh up the benefits against the risks. In this case, if anyone else comes along to edit the document, having the empty paragraph between questions is far more obvious than having two different 'answer' Styles. Imagine what might happen when a new user starts copying & pasting answers to use as 'templates' for new question/answer sets and doesn't appreciate the subtleties... What do you suppose might happen if a paragraph in the 'last answer style' is deleted or duplicated!
Was playing with Find/Replace today
Could do your code in Macro with find/replace
Tried on attached document.

1. Find Question_Style and replace it with ^p^&
2. Find ^p^p and replace it with ^p###^p
3. Change ### to be in normal style
4. Replace ### to nothing!

Find/Replace is powerful!


Looked at your forum posts; wish to be competent in Macro; I've some programming background but I know nothing in VBA; from where do you suggest me to begin? any online tutorial/video/etc??
Attached Files
File Type: docx TestingReplace.docx (12.7 KB, 8 views)
Reply With Quote