dbmathis
Well-known Member
- Joined
- Sep 22, 2002
- Messages
- 1,064
Hi all,
I have created a userform (transEntry) and I am seeking an example of taking the data that has been entered into a textbox2 on the userform and searching up copying it into a cell on my sheet.
The Submit button on the userforn is: CommandButton1
An example text box is: TextBox2
There is a column of data, cells I2 thru I212, and cells I2 thru I100 contain data.
What I am hoping I can get to happen is there will be text in TextBox2 and when someone clicks the Submit button (CommandButton1), to start in cell I212 and search upward until a cell with data in it's found (in this example: I100) and then paste the data that's in Textbox2 six cell to the left of it (which would be in this example C100)?
I thought this was a fairly easy thing to do, but I tried and could not get it done yet. Any help would be appreciated.
Thanks
I have created a userform (transEntry) and I am seeking an example of taking the data that has been entered into a textbox2 on the userform and searching up copying it into a cell on my sheet.
The Submit button on the userforn is: CommandButton1
An example text box is: TextBox2
There is a column of data, cells I2 thru I212, and cells I2 thru I100 contain data.
What I am hoping I can get to happen is there will be text in TextBox2 and when someone clicks the Submit button (CommandButton1), to start in cell I212 and search upward until a cell with data in it's found (in this example: I100) and then paste the data that's in Textbox2 six cell to the left of it (which would be in this example C100)?
I thought this was a fairly easy thing to do, but I tried and could not get it done yet. Any help would be appreciated.
Thanks