The entered data is added to Column C of my sheet, and the data entered on the userform is entered on the same row, but two columns over. I have all of that working; you enter a UPC in a cell of column C, a userform comes up and asks to enter a quantity. I entere a quantity, click enter, and that data is entered into a cell two columns over. What I am after is if you instead click "cancel" and not OK, the form closes and clears the data in the cell that initiated the userform.w
For example, cell C4 has data entered into it, userform pops up, but Cancel is clicked. The userform goes away and the data entered into C4 is cleared. This should repeat regardless of the row - C4, C5, C6, etc.
This is the code I have for the cancel button:
And this is the main code for the sheet:
I think my challenge comes from using "Target" rather than the cell specifically...
Bookmarks