chirayu
Well-Known Member
Hi All,
I have a Named range that has hardcoded values inside it. These Values are populated from another Named Range whenever the macro is run.
What I would like to do is be able to manipulate values in the generated Named Range.
I have a Named range that has hardcoded values inside it. These Values are populated from another Named Range whenever the macro is run.
What I would like to do is be able to manipulate values in the generated Named Range.
Code:
Sub Test()
'Create RngB from RngA - RngA is A1:A10
ThisWorkbook.Names.Add "RngB", [RngA].Value
'Here I need a code that can create an Array from RngB
'& then replace values basis whatever criteria I specify
'e.g. check each value & if #N/A then replace with 0
End Sub