Macro to copy data over to a table depending on sheet name

Falcons88

New Member
Joined
Jun 10, 2021
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am looking for a macro to copy over information from one sheet to another depending on a few things

I have a a few sheets set up with tables in them like below:
1678451772186.png


I am looking to copy over certain information shown below to the relevant table in the relevant sheet:
1678451982012.png


example above
On line 9 the information from N to U to go into a sheet called "Revenue" to a table I have set up titled "Sales" named (table1)
On line 10 the information from N to U to go into a sheet called "Asset" to a table I have set up titled "Office Equipment" named (table2)

Column L is driving which sheet it goes into and column F determines the table.

If it's possible I'd like VAT to go into a separate table too but not sure if that's able to be done

any help would be fantastic, if anyone can think of an easer way otherwise as i might be complicating the process would be greatly appreciated.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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