Hi Kheiron,
See the attached file which implements what you want for a few fields. It should help you get started. I've also added some other features:
a. Clear 'ENTRY SHEET' CommandButton.
b. 'Double Click' on cell 'A1' in 'ENTRY SHEET' to go to cell 'A1' in 'CAPTURED DATA'.
c. 'Double Click' on cell 'A1' in 'CAPTURED DATA' to go to cell 'A1' in 'ENTRY SHEET'.
d. 'Double Click' any place in 'CAPTURED DATA' on a row that contains data, and that entry will be placed in 'ENTRY SHEET' (if 'ENTRY SHEET' Employee Name field is BLANK).
Sheet 'ENTRY SHEET' module code:
Sheet 'CAPTURED DATA' module code:
Ordinary Code Module code (e.g. Module1):
It is a best practice to declare all variables. If you misspell a variable in your code, VBA will silently assume it is a Variant variable and go on executing with no clue to you that you have a bug. Go to the VBA development window, click Tools, Options, and check "Require Variable Declaration." This will insert the following line at the top of all new modules:
This option requires all variables to be declared and will give a compiler error for undeclared variables.
Lewis
Bookmarks