Hi, I have my code working well but want to expand it. Need it to therefore become an OR statement as the two conflict at present
If the first condition is met, n is deleted and so the second if statement fails as the object has gone
I need to expand it so that both IF statements can be treated as an OR.
IF x=y OR a=b THEN
Simple request I hope...
Rich (BB code):
Dim n as Name
For Each n In ActiveWorkbook.Names
If n.RefersTo Like "*[[]*" Then n.Delete
If n.RefersTo Like "*REF!*" Then n.Delete
Next n
If the first condition is met, n is deleted and so the second if statement fails as the object has gone
I need to expand it so that both IF statements can be treated as an OR.
IF x=y OR a=b THEN
Simple request I hope...