Excelerometer
New Member
- Joined
- Aug 27, 2013
- Messages
- 12
Here is the scenario:
Workbook "Calculator" is completed by several different users and is e-mail to one particular user via a submit button macro. The calculator includes the following info that then needs to be exported to a "MasterList" located in another workbook (info in parentheses indicates the paste location in the MasterList)
K14 - Name; (to column E)
M14 -DOB; (to column F)
D6 - Number 1 (to column B)
D8 - Number 2 (to column C)
D10 - Type (to column D)
B14 - Specific Date (to column H)
D14 - Specific Date 2 (to column M)
To complicate things a bit, there are spaces for nine (9) potential names. (K14, 16, 18, 20, 22, 24, 26, 28, 30). Each name would share the same information from the other cells listed. Although there are 9 spaces, there typically would be less entries.
ATTEMPTS I'VE MADE:
I tried to record my own macro where I copied the desired cells in the calculator and pasted them into the masterlist. This worked; however, I was having several issues.
1) The recorded macro always pastes the info in to the same row (I tried integrating a "next empty row" line to the recorded macro without any success)
2) I do not want blank info to be pasted into the masterlist (if there is no name, there should be no export). The one solution I thought of was to create an export button next to each name, instead of one "master export" button.
WHAT I NEED:
I need VBA code that enters the data mentioned into the NEXT EMPTY ROW -- IN THE COLUMNS THAT I SPECIFIED. I would like to export using one button, so that if a name does not appear, an extra line is not created, but I could manage with a button next to every name.
Any help would be greatly appreciated! Thank you in advance!
Workbook "Calculator" is completed by several different users and is e-mail to one particular user via a submit button macro. The calculator includes the following info that then needs to be exported to a "MasterList" located in another workbook (info in parentheses indicates the paste location in the MasterList)
K14 - Name; (to column E)
M14 -DOB; (to column F)
D6 - Number 1 (to column B)
D8 - Number 2 (to column C)
D10 - Type (to column D)
B14 - Specific Date (to column H)
D14 - Specific Date 2 (to column M)
To complicate things a bit, there are spaces for nine (9) potential names. (K14, 16, 18, 20, 22, 24, 26, 28, 30). Each name would share the same information from the other cells listed. Although there are 9 spaces, there typically would be less entries.
ATTEMPTS I'VE MADE:
I tried to record my own macro where I copied the desired cells in the calculator and pasted them into the masterlist. This worked; however, I was having several issues.
1) The recorded macro always pastes the info in to the same row (I tried integrating a "next empty row" line to the recorded macro without any success)
2) I do not want blank info to be pasted into the masterlist (if there is no name, there should be no export). The one solution I thought of was to create an export button next to each name, instead of one "master export" button.
WHAT I NEED:
I need VBA code that enters the data mentioned into the NEXT EMPTY ROW -- IN THE COLUMNS THAT I SPECIFIED. I would like to export using one button, so that if a name does not appear, an extra line is not created, but I could manage with a button next to every name.
Any help would be greatly appreciated! Thank you in advance!