SimonGeoghegan
Board Regular
- Joined
- Nov 5, 2013
- Messages
- 68
Hi All,
I have inadvertently, through another piece of code, got a number of files that have 2 named ranges with the same name. I'd like to delete just one of these but not sure how i'd write the code to ensure I was deleting the correct one (the bottom of the 2 below):
Name | Value | Refers To | Scope
CashCompliance1 | 0% | = 'Cash Management'!$C$69 | Cash Management
CashCompliance1 | {…} | ='\\BMIFILES\Teams\Users\sgeoghegan\Desktop\Self Assessments WIP\[Self Assessment Hospital Template.xlsm]Cash Management'!$C$69| Workbook
Apologies for the lack of image.
I have all the loop code etc. to wrap around, and I've seen code for deleting ranges - but nothing specific to identify a range based upon on the "Refers To" section.
Any help greatly appreciated.
Thanks,
Simon
I have inadvertently, through another piece of code, got a number of files that have 2 named ranges with the same name. I'd like to delete just one of these but not sure how i'd write the code to ensure I was deleting the correct one (the bottom of the 2 below):
Name | Value | Refers To | Scope
CashCompliance1 | 0% | = 'Cash Management'!$C$69 | Cash Management
CashCompliance1 | {…} | ='\\BMIFILES\Teams\Users\sgeoghegan\Desktop\Self Assessments WIP\[Self Assessment Hospital Template.xlsm]Cash Management'!$C$69| Workbook
Apologies for the lack of image.
I have all the loop code etc. to wrap around, and I've seen code for deleting ranges - but nothing specific to identify a range based upon on the "Refers To" section.
Any help greatly appreciated.
Thanks,
Simon