macro needed to copy and save data

pauliep

New Member
Joined
Aug 11, 2011
Messages
1
Hi

I have a data validation list in cell B1. Once a value is selected by the user, they will enter a value in cells I5 and J5. I would like a macro that will save the entered values in I5 and J5 information in another worksheet (same workbook) based on the value in B1.

For example, say the validation list in cell B1 on worksheet "Sheet 1" includes US state names. There are is a cell for the state capital in cell I5 and the state bird in cell J5. "Sheet 2" contains the list of all the state names in column A and has a column for state capitals in column B and a column for state birds in column C. The user will selecting a state in the validation list in Sheet 1 and then enter the state capital and bird. The macro would copy the entered values into columns B and C in the corresponding state row of Sheet 2 and then save the workbook.

Many thanks for your help!

-Paul
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,224,618
Messages
6,179,916
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top