Home

Improved way to recognise macros in Word VBA

officeuser5
Occasional Visitor

Hello everybody,

 

I was trying to write a macro to turn the following text into a list with a paragraph after each sentence. 

 

Tell me about yourself. What are you doing here? Why consulting? Why did you pick your school? What do you think consultants do? What do you know about this job and our firm? Why would you choose our firm over our competitors? How are your quantitative skills? What percentage is 7 of 63? Tell me of a time you showed leadership skills. 

 

When recording the macro and manually entering a paragraph after each "?" and ".", following code was generated. Is there a possibilty to improve the recognition of macros in a way that Word sees that there is a pattern in when I did a paragraph?

Sub AbsatzNachSatzzeichen()
'
' AbsatzNachSatzzeichen Macro
'
'
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeParagraph
Selection.TypeParagraph
Selection.TypeParagraph
Selection.TypeParagraph
Selection.TypeParagraph
End Sub 

 

Thank you very much for your help.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies