Refresh data table via vba????

jrmunge

New Member
Joined
Aug 23, 2011
Messages
3
Hi,
Can anyone help me out with a code on how to refresh a data table via vba. My workbook has been set to automatic recalculation(except data tables) due to speed issues. I need to have a macro that I can call whenever I want the data table refreshed. Please help me out.
 
I understand that this thread is old, but Google got me here and what I ended up finding elsewhere may be helpful to others here:

Code:
Worksheets("SheetNameHere").ListObjects("TableNameHere").Refresh

Will this work on a table that is fed through a CSV file, or even an excel file in a folder? My code is pulling data from another source and trying to update an existing Excel Table, but i get the "Unable to add data to existing table error" (Not verbatim).

Trying to figure out a way to refresh My table without having to delete it and start new, because My existing table had important formula columns using Excel table "structured formulas". I've even tried using and updating queries in the data model and no luck.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I understand that this thread is old, but Google got me here and what I ended up finding elsewhere may be helpful to others here:

Code:
Worksheets("SheetNameHere").ListObjects("TableNameHere").Refresh
this is what I was looking for ty
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

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