Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-30-2022, 05:31 AM
macropod's Avatar
macropod macropod is offline Acronym and definiton list generator Windows 10 Acronym and definiton list generator Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


You could, for example, change:
Code:
.Text = "\([A-Z0-9][A-Z&0-9]{1" & Application.International(wdListSeparator) & "}\)"
to:
Code:
.Text = "\([A-Z0-9][A-Z&0-9]{1" & Application.International(wdListSeparator) & "9}\)"
This will limit the find string to a maximum of 9 characters. Such a limitation seems fairly meaningless, however, as few words would be longer than that and, if you have many parenthetic uppercase single words, those will all be included in the output.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 10-30-2022, 08:15 AM
jabanks jabanks is offline Acronym and definiton list generator Windows 11 Acronym and definiton list generator Office 2021
Novice
 
Join Date: Oct 2022
Posts: 3
jabanks is on a distinguished road
Default

Thank you for taking the time to reply.
I thought I had tried that combination but with no joy, it works though!
The reason why I wanted to limit the string length is that the Find would find items in brackets that were not acronyms e.g. (Document 12345678). This has now resolved the issue.

Again, many thanks.
Reply With Quote
Reply

Tags
acronymlister macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Acronym and definiton list generator Adding List Number to Acronym Table SerenityNetworks Word VBA 6 12-13-2016 01:36 PM
Acronym and definiton list generator Random Name Generator knp11 Word 1 01-18-2015 11:41 AM
Acronym and definiton list generator Need guidance on creating a Word doc generator mikeman Word VBA 1 10-26-2014 10:35 PM
Acronym and definiton list generator Acronym Finder Cray_Z Word VBA 14 09-22-2014 11:42 PM
Document Generator HJJ Word 0 08-12-2009 03:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft