R
RGeneral
Hi guys-
I'm kind of a self-taught VBA programmer and I can usually blunder
around and get a macro to work, but I'm having trouble with a rather
difficult one right now.
I've created a UserForm that has 6 fields the user has to fill in for
a database. Once the user hits the "OK" button, I want the macro to
look for the last entry in the database that is identical to what the
user filled in Field 1 of the UserForm and insert a row beneath it and
fill in the cells with the data from the UserForm. So, i.e:
Apple
Apple
Orange
Orange
Orange
Banana
Grape
Grape
If I type "Banana" in Field 1 on the Userform, I would like it to
insert a row beneath Banana and then fill in the cells with the other
information entered in the other 5 fields.
Any help on this would be greatly appreciated!
Thanks,
-Ray
I'm kind of a self-taught VBA programmer and I can usually blunder
around and get a macro to work, but I'm having trouble with a rather
difficult one right now.
I've created a UserForm that has 6 fields the user has to fill in for
a database. Once the user hits the "OK" button, I want the macro to
look for the last entry in the database that is identical to what the
user filled in Field 1 of the UserForm and insert a row beneath it and
fill in the cells with the data from the UserForm. So, i.e:
Apple
Apple
Orange
Orange
Orange
Banana
Grape
Grape
If I type "Banana" in Field 1 on the Userform, I would like it to
insert a row beneath Banana and then fill in the cells with the other
information entered in the other 5 fields.
Any help on this would be greatly appreciated!
Thanks,
-Ray