ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
hello.
On sheet1 I have a button that I've created thru "view/form"
the button runs a code (let us say macro1= [A1].select)
Now I copy the whole sheet and paste on a new sheet (sheet2)
The button is there BUT when I click on it I want it to run a different code.
So what I'm looking for is a condition like this:
If on sheet1 run macro1
else run "different code"
many thanks for your help
On sheet1 I have a button that I've created thru "view/form"
the button runs a code (let us say macro1= [A1].select)
Now I copy the whole sheet and paste on a new sheet (sheet2)
The button is there BUT when I click on it I want it to run a different code.
So what I'm looking for is a condition like this:
If on sheet1 run macro1
else run "different code"
many thanks for your help