Message 1 of 19
VBA / Find Replace / Quick Fix for Someone (not me...Please Help!!)

Not applicable
11-29-2006
05:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Need~
I need to search through several hundred drawings and check to make sure the customer is "Dilling Mechanical" not "Corporate Construction"
Tried/Problem~
I tried using SRXTEXT and the script fails if the Title Block is correct and there are no replacements req'd. I also tried using a single command (to no avail) in SRXTEXT as: (srxTEXT "Substring" "CORPORATE CONSTRUCTION" "DILLING MECHANICAL" "All") I get ; error: no function definition: SRXTEXT
Also Tried~
I found this VBA code on a post yesterday and I tried to alter the code to work on my situation. I stepped through the code and the text that I'm trying to change doesn't get selected in the code. It is in MSPACE. How do we fix that?
Attached~
my VBA code attempt from post yesterday
one of the sheets that need changed.
Test for success-
run a script, a snippet of code (VBA), or whatever twice through this dwg and the first time it changes the text. 'CORPORATE CONSTRUCTION' to 'DILLING MECHANICAL' and the second time runs through with out errors using the EXACT same input. Some sheets need changed and some don't.
Side Note/Question~
How would I use a button to run a script. Say the script is:
C:\Scripts\runme.scr what is the command of the button?
THANKS THANK YOU MUCH OBLIGED!!!!!!
Thanks,
MSR
I need to search through several hundred drawings and check to make sure the customer is "Dilling Mechanical" not "Corporate Construction"
Tried/Problem~
I tried using SRXTEXT and the script fails if the Title Block is correct and there are no replacements req'd. I also tried using a single command (to no avail) in SRXTEXT as: (srxTEXT "Substring" "CORPORATE CONSTRUCTION" "DILLING MECHANICAL" "All") I get ; error: no function definition: SRXTEXT
Also Tried~
I found this VBA code on a post yesterday and I tried to alter the code to work on my situation. I stepped through the code and the text that I'm trying to change doesn't get selected in the code. It is in MSPACE. How do we fix that?
Attached~
my VBA code attempt from post yesterday
one of the sheets that need changed.
Test for success-
run a script, a snippet of code (VBA), or whatever twice through this dwg and the first time it changes the text. 'CORPORATE CONSTRUCTION' to 'DILLING MECHANICAL' and the second time runs through with out errors using the EXACT same input. Some sheets need changed and some don't.
Side Note/Question~
How would I use a button to run a script. Say the script is:
C:\Scripts\runme.scr what is the command of the button?
THANKS THANK YOU MUCH OBLIGED!!!!!!
Thanks,
MSR