Good Morning,
I have a workbook that contains ten worksheets and within those worksheets, I used code to name hundreds of specific cells. See a small sample of the code below:
ThisWorkbook.Names.Add Name:="CDS_A0.A", _
RefersTo:=Worksheets("CDS-A").Range("D4")
ThisWorkbook.Names.Add Name:="CDS_A0.B", _
RefersTo:=Worksheets("CDS-A").Range("D5")
ThisWorkbook.Names.Add Name:="CDS_A0.C", _
RefersTo:=Worksheets("CDS-A").Range("D6")
ThisWorkbook.Names.Add Name:="CDS_A0.D", _
RefersTo:=Worksheets("CDS-A").Range("D7")
ThisWorkbook.Names.Add Name:="CDS_A0.E", _
RefersTo:=Worksheets("CDS-A").Range("D8")
ThisWorkbook.Names.Add Name:="CDS_A0.F", _
RefersTo:=Worksheets("CDS-A").Range("D9")
ThisWorkbook.Names.Add Name:="CDS_A0.G", _
RefersTo:=Worksheets("CDS-A").Range("D10")
ThisWorkbook.Names.Add Name:="CDS_A0.H", _
RefersTo:=Worksheets("CDS-A").Range("D11")
What I would like to do now is populate the cells with the name. For the example above, I would like "CDS_A0.A" to be put into the cell "D4" in worksheet "CDS-A".
I would also like to highlight the cells a color to make them stand out.
I have a separate worksheet that contains all the worksheet names, ranges and cell names used to create the "name".
I have searched but cannot find anything like what I am trying to do.
I appreciate you all looking at this!
Bookmarks