View Single Post
 
Old 03-24-2023, 10:41 PM
Bunnelope Bunnelope is offline Mac OS X Office 2021
Novice
 
Join Date: Mar 2023
Posts: 5
Bunnelope is on a distinguished road
Default

To make it simple, here is a demo of the macro I currently have, and a demo of what I want to do. There are 2 problems with the macro that I have:

1. It identifies too many sentences (see demo)

2. It identifies sentences with 30+ words (I want it triggered at 25+ words)



Example sentence without using macro:



Sam woke up Thursday. He went to the bank and withdrew two hundred dollars before going to the store and buying a turkey for Thanksgiving dinner at his grandparents house in Tallahassee Florida on Thanksgiving day in 2019. He was nervous about going, because he hadn't seen his grandparents in a while, and they had a big, scary, mean dog, that was known to bite.



Example sentence using "Mark_LongSentences" macro: (this macro gets triggered at 30+ word sentences but I only need it to be at 25+ word sentences.



Sam woke up Thursday. He went to the bank and withdrew two hundred dollars before going to the store and buying a turkey for Thanksgiving dinner at his grandparents house in Tallahassee Florida on Thanksgiving day in 2019. Finally the time had come. Sam was nervous about going, because he hadn't seen his grandparents in a while, and they had a big, scary, mean dog, that was known to bite, and might even have rabies.



Notice that it marked both long sentences, including the one with many commas. I don't want that. I only want it to mark the one that has a stretch of 25+ words without commas.



Example sentence using my fantasy macro that does what I want it to do:
Sam woke up Thursday. He went to the bank and withdrew two hundred dollars before going to the store and buying a turkey for Thanksgiving dinner at his grandparents house in Tallahassee Florida on Thanksgiving day in 2019. Finally the time had come. Sam was nervous about going, because he hadn't seen his grandparents in a while, and they had a big, scary, mean dog, that was known to bite, and might even have rabies.



Notice how it only identified the first long sentence. Second one is fine because the 25+ word stretch is broken up into phrases with commas.
Reply With Quote