There is a code that opens a msgbox and asks for input text.
It will then search drawing for that text and change it to red.
see thread
Link
I had to change a line of this code to be "endPos = Len(InsertText)" for it to work correctly for me.
Look at each line of that code and try to understand what it does.
Once you get that code to work, look to modify code for border of that same text.
look in the CAA help file (should be installed on your computer)
important for SetParameterOnSubString as this modifies a portion of the complete text.
the value for the circle border will probably be 3 ( the fourth option with No border being zero)
Once you get border to work.
Now you can remove or comment out ' the change to red portion of code.
this macro searched complete drawing for text input.
so, you may want it to search only selected text.
you can search codes on here and find something that will work for that.
This still requires you to input what text to search for.
you could change this to look for each number from 1-1000, or whatever your range would be, instead of the "insert text"
this could probably be done with a "i to xx" loop, with a variable value in a loop that increases by 1 until it reached x
or if you typically only have a few numbers within your text, just type those in the input box.
still much quicker than the manual method.
and if you cant get the selected text to work, maybe copy the text to an empty drawing, run the macro and copy the text back.
Not an expert here, but I am pretty confident it can be done!
Most of my scripting is similar to above.
I find some similar ones and piece them together. then google search for many hours.
the initial hardest thing is to understand what each line is doing and why its needed.
Take each macro development in steps, get something to work (save it) then add/modify it.