Hi,
I've had a search but can't find a similar question.
I am trying to get whatever a user has just typed into a cell and copy it to a different worksheet. I figured this was best to run in the SheetSelectionChange section, the idea being someone types something into cell B4 (or any cell) then whenever they hit enter or click away whatever was typed into B4 copies to another worksheet.
So simply fill the variable "MyCell" with the contents of the cell the person just changed, then I can do what I like with it. I thought MyCell = activecell.value would do but that gives the value of the cell the user is now on
Example, enter "TEST" in B4 then press enter, MyCell contains the value of B5. Enter "TEST" then press tab, MyCell contain C4's value. I can't use offset as I don't know which way the user might go after entering the text, or they might click to a totally different cell.
Basically I need MyCell = PreviousActiveCell.Value or a different way to fill a variable with the text a user has just entered into a cell as soon as they leave that cell.
Any ideas?
Thanks
I've had a search but can't find a similar question.
I am trying to get whatever a user has just typed into a cell and copy it to a different worksheet. I figured this was best to run in the SheetSelectionChange section, the idea being someone types something into cell B4 (or any cell) then whenever they hit enter or click away whatever was typed into B4 copies to another worksheet.
So simply fill the variable "MyCell" with the contents of the cell the person just changed, then I can do what I like with it. I thought MyCell = activecell.value would do but that gives the value of the cell the user is now on
Example, enter "TEST" in B4 then press enter, MyCell contains the value of B5. Enter "TEST" then press tab, MyCell contain C4's value. I can't use offset as I don't know which way the user might go after entering the text, or they might click to a totally different cell.
Basically I need MyCell = PreviousActiveCell.Value or a different way to fill a variable with the text a user has just entered into a cell as soon as they leave that cell.
Any ideas?
Thanks
Last edited: