Hi,
I work sometimes with files that with sheets copied from old excel files from japan and are loaded with Excel 4.0 macros and/or range names with invalid names and/or definitions. I would really like to delete them all by code because there are many of them.
by hand is no problem, open the dialog and ONE BY ONE i can delete them .
however if I instruct a macro to do the same error comes saying "error 1004, that name is invalid"
I tried to make them visible, change the definition, but nothing works.
and putting "ON ERROR REUME NEXT" leaves then as they are...
I even thought of manipulating the names dialog by code, but aparently that is impossible...
should I do it by sendkeys or something like that??
I attach the file for your amusement --- whoever makes a code to delete all range names will win my eternal gratitude.
I had to compress the file because otherwise it is more than 1MB ! (no content besides range names...!)
kind regards
Bernat
Bookmarks