patricknord
New Member
- Joined
- Apr 1, 2013
- Messages
- 5
Hello--I am new to this board and a bit new to Excel VBA.
I am trying to write a script that will do the following--when run, test if the active cell in the current sheet (sheet1) is equal to the active cell in a second sheet (I have named it creatively--sheet2). If yes, then I want it to return a value of 2 in the cell one to the right of the active cell in sheet2; if they are not equal (else, right?), I want it to move down one cell, paste the active cell from sheet1 and enter a value of one in the cell one to the right.
Any help?
Thank you!!!
p
I am trying to write a script that will do the following--when run, test if the active cell in the current sheet (sheet1) is equal to the active cell in a second sheet (I have named it creatively--sheet2). If yes, then I want it to return a value of 2 in the cell one to the right of the active cell in sheet2; if they are not equal (else, right?), I want it to move down one cell, paste the active cell from sheet1 and enter a value of one in the cell one to the right.
Any help?
Thank you!!!
p