Hi,
I'm using the following code to create a series of named range formulae:
The problem is that the result of my concatenated string above contains starting and ending quotations. So instead of
=INDEX(PARTS!$E$5:$E$200,MATCH(BOM!$D$5,PARTS!$B$5:$B$200,0))
in the Name Manager, I see
="INDEX(PARTS!$E$5:$E$200,MATCH(BOM!$D$5,PARTS!$B$5:$B$200,0))"
And Excel doesn't like that...
How do I get it to strip the quotes from the range?
Thanks,
Jeff
I'm using the following code to create a series of named range formulae:
Code:
ImageRanges(TableSz) = "INDEX(PARTS!$E$5:$E$200,MATCH(BOM!$D$" & ImgRowNum & ",PARTS!$B$5:$B$200,0))"
RangeNames(NItems) = "AsmImage" & NItems
ActiveWorkbook.Names.Add Name:=RangeNames(NItems), RefersTo:=ImageRanges(TableSz)
The problem is that the result of my concatenated string above contains starting and ending quotations. So instead of
=INDEX(PARTS!$E$5:$E$200,MATCH(BOM!$D$5,PARTS!$B$5:$B$200,0))
in the Name Manager, I see
="INDEX(PARTS!$E$5:$E$200,MATCH(BOM!$D$5,PARTS!$B$5:$B$200,0))"
And Excel doesn't like that...
How do I get it to strip the quotes from the range?
Thanks,
Jeff