Hello again,
I have a macro that my job has requested (because I have written others with help from here!) so I figured I would go back to the place that got me started. Here is the situation:
We are cataloging drawings to create a searchable database. Right now the database is about ready to upload but we have some minor checks we need to do before the upload or the files will kick back. Each drawing has a Discipline (Architectural, Electrical, Civil, Structural, etc.) as well as a sub discipline (Architectural Elements, Architectural Interiors, etc.). Originally they wanted me to write a macro that would remove the Discipline header from the sub discipline (Electrical Power would become Power) so that has already been completed.
Now the new task is to write a macro that checks to make sure that the Discipline that was picked contains that sub discipline, for example you cannot have Architectural as a Discipline and Power as the sub discipline because power is under Electrical. I would need to write something that would read column N (the entire column) and for each row that contains said discipline, it would then look at column BF and make sure that the sub matches up within that row.
For ease if someone just showed me a way to code it for one example I can do it for all the others, I just have no idea how to start it.
So for an example lets say this:
Read Column N, if the word "Architectural" is found then look at column BF for one of these:
Elements
Interiors
Finishes
Demolition
Graphics
If anything else is in column BF then delete (replace with " ") and leave blank.
Hope someone can help as it would, as always with me, make my job much easier.
I actually have to write this code for about 15 disciplines but if I just get a quick example on how to do it I should be able to do the rest without much of an issue.
Thanks in advance!
Mike
Bookmarks