View Single Post
 
Old 07-31-2022, 05:16 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Using just [0-9] will only find single digits (i.e. 0-9), excluding 10 and above. If <[0-9]@> isn't working, that suggests you're not looking for numbers, per se, but numeric strings that may or may not be part of larger alpha-numeric strings. In that case, use:
.Text = "[0-9]{1,}"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote