VBA to Refresh Define Names

prav78

New Member
Joined
Aug 24, 2014
Messages
13
Hello,
I have a table (TBLCost) which has 8 columns:-
A: Cost Type
B: Cost SubType
C: Product Type
D: FY2017
E: FY2018
F: FY2019
G: FY2020
H: FY2021

I'm using the Indirect function to find the product cost for a FY.
This table is dynamic that is rows (products) and FYs can be added/renamed or deleted.

I need you assistance please, to have a macro/vba to select the whole table, add or refresh the names for "Top Row" (from column Product Type) and "Left Column".
I don't want to delete the whole Name Manager list as I have other names defined.
Thanks.
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If you are using a table why are you using named ranges?

You should be able to refer to the table, and its data columns, etc., using structured referencing.
 
Upvote 0

Forum statistics

Threads
1,215,572
Messages
6,125,605
Members
449,238
Latest member
wcbyers

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