Reformatting Data dependent on Customer

jamiem4

New Member
Joined
Oct 19, 2014
Messages
3
Hi,

I currently receive forms from a number of different customers all in a different format. I am trying to write a macro that will automatically rearrange the data into a predefined template for me.
I think the easiest way would be to have a section of VBA code for each customer that I can then copy to set up for the order the new customer sends data.

For example, for Customer ‘Harry’ (who’s data is in sheet ‘Customer Data’):

If cell A1 in sheet ‘Choose Customer’ = ‘Harry’, copy from A2 to bottom of column A in sheet ‘Customer Data’ and paste into cell D1 of sheet ‘Reformatted Data’

If the Customer was ‘Bob’, copy from C1 to the bottom of column C in sheet ‘Customer Data’ and paste into cell D1 of sheet ‘Reformatted Data’. Etc etc etc.

Please could someone help me to write some code for this?

I hope this makes sense.

Thanks!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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