I am trying to perform this task in Microstation using VBA. I want to use it to find and replace multiple numbers in the drawing.
I know the program generally, however I am having trouble putting this together. I have 2 variables.
Thank you in advance and sorry for the badly written code. Just getting used to VBA!
Sub main()
Dim Find_text () As string = split ("150 160 170 180 190 200 210 220")
Dim Replace_text () As string = split ("15 16 17 18 19 20 21 22")
For i As Integer = 0 To Find_text.length - 1
'I will write my find and replace code here
Next
End Sub
You can use function InStr() to find substring in string and function Replace() to replace found string with replace_string