EXCE Named Range Corruption

Martel

New Member
Joined
Jun 19, 2019
Messages
26
Named Ranges become corrupted readily. I am writing a fairly large application using VBA and named ranges extensively. I have a major problem - it appears that in the event of any error in coding, wherever and not related to anything in particular, the defined named ranges are the first thing to go. Using Offset in name definition. Error is that range locations are replaced with #REF error. This is happening regularly. I have repeatedly gone through name manager, corrected errors and resaved, only to find this error comes back, often without me changing anything.

I am baffled by this problem and would appreciate any suggestion on how this can be overcome Really holding me up. Thanks
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Consider having VBA create/update the named ranges, as required. Then they can be simply defined (as hard ranges) without using OFFSET, MATCH, INDEX, COUNTA, etc, etc
 
Upvote 0
Many thanks Fazza for your reponse. This is my fault but I omitted to mention that I using Dynamic Named Ranges, it is these that are causing all the ptoblems. I do not kow how I could use VBA to create "hard ranges" which at the same time would be dynamic.I suspect this is yet another of the vagaries of Excel which we are expected to put up with. But, if you or anyone else has other ideas I would be pleased to know. Thanks again. Martel
 
Upvote 0
I understood you have dynamic named ranges, Martel. The way to use VBA to create the ranges is to use a programmatic approach instead of the current formulas. Whatever the dynamic formula is doing, having that process done via code.
 
Upvote 0

Forum statistics

Threads
1,223,704
Messages
6,173,984
Members
452,540
Latest member
haasro02

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