Changing Table using VBA

Crazy Dazz

New Member
Joined
Dec 11, 2017
Messages
5
I'd like to learn more about automatically making changes to tables using VBA.

So, a specific issue I am currently dealing with:
I have multiple Tables that are manually populated with data by users as required. The tables have Suppliers as Column Headings, and a Description of Goods or services etc in the first column. (And the users populate the tables with prices.)

Suppliers are controlled elsewhere by a master list, but the data is available in these workbooks (via queries) and will auto-update.
Currently, when we add a supplier, I have to go into each workbook and each table, and manually add a column.

I tried to have the tables update using a Power Query, and it worked as far as adding the new supplier to a column header. But unfortunately the manually entered prices were then displaced into the wrong columns.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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