Eurekaonide
Active Member
- Joined
- Feb 1, 2010
- Messages
- 433
Hi I wonder if you can help please as my mind has gone blank!
I have a user form im creating where users can update / add / amend data in the vast number of cells of worksheets, however Im struggling with the VBA code to write for the data to be put into the worksheets from the form that they fill in.
Its a simple form with text boxes currently where they can input data.
The complexity comes from being able to locate the right cell in the worksheet to put the data into.
it has a few conditions to locate the correct cell;
My formula for looking up the data goes like this;
=LOOKUP(2,1/(('Raw Data'!$A1:$A600=HOME!$B$12)*('Raw Data'!$C1:$C600=HOME!L$20)*('Raw Data'!$H1:$H600=HOME!K$22)),'Raw Data'!$G1:$G600)
But what would I write in VBA to look this up and then place the new data they have put in the text box into the corresponding cell?
Thanks for your assistance
I have a user form im creating where users can update / add / amend data in the vast number of cells of worksheets, however Im struggling with the VBA code to write for the data to be put into the worksheets from the form that they fill in.
Its a simple form with text boxes currently where they can input data.
The complexity comes from being able to locate the right cell in the worksheet to put the data into.
it has a few conditions to locate the correct cell;
- The ID which is always in Column A but may appear several times
- The Stage which is in Column B and could appear multiple times
- The Instance number which is a sequential number ranging from 1 onwards (these are unique as in 1 only ever appears once against that ID and that Stage)
My formula for looking up the data goes like this;
=LOOKUP(2,1/(('Raw Data'!$A1:$A600=HOME!$B$12)*('Raw Data'!$C1:$C600=HOME!L$20)*('Raw Data'!$H1:$H600=HOME!K$22)),'Raw Data'!$G1:$G600)
But what would I write in VBA to look this up and then place the new data they have put in the text box into the corresponding cell?
Thanks for your assistance