Hello everybody,
I did some digging around the forum and couldn't find anything pertaining to my question. I have a macro that performs a huge of amount of maintenance on a particular file. However, because nothing is easy, the one of the worksheets will be missing a certain column under certain conditions. This causes the macro to fail. The only change I need to make to correct the problem is to insert a 'dummy' column in its place.
Is there a way I can have the macro read a certain cells value, and depending on whether or not a particular value is present, insert another column? I've tried creating if/else statements but with no luck.
Thanks.
I did some digging around the forum and couldn't find anything pertaining to my question. I have a macro that performs a huge of amount of maintenance on a particular file. However, because nothing is easy, the one of the worksheets will be missing a certain column under certain conditions. This causes the macro to fail. The only change I need to make to correct the problem is to insert a 'dummy' column in its place.
Is there a way I can have the macro read a certain cells value, and depending on whether or not a particular value is present, insert another column? I've tried creating if/else statements but with no luck.
Thanks.