Ivan Howard
Active Member
- Joined
- Nov 10, 2004
- Messages
- 333
Hello All,
Please can someone give me a hand. I've had a look online for a solution but cannot find something that will do what I need.
Basically I have a macro that creates a new worksheet called "Results". If the user runs the macro more than once, the macro tries to create the "Results" worksheet again - and breaks. What I need is to get the macro to see that "Results" exists and then create "Results 1"... the next problem comes where "Results 1" also already exists and so forth.
The question is how can I get the macro to create incremented worksheet names so that it doesn't fall over?
Any help would be great - thanks in advance.
Ivan
Please can someone give me a hand. I've had a look online for a solution but cannot find something that will do what I need.
Basically I have a macro that creates a new worksheet called "Results". If the user runs the macro more than once, the macro tries to create the "Results" worksheet again - and breaks. What I need is to get the macro to see that "Results" exists and then create "Results 1"... the next problem comes where "Results 1" also already exists and so forth.
The question is how can I get the macro to create incremented worksheet names so that it doesn't fall over?
Any help would be great - thanks in advance.
Ivan