sorry for the delayed response - in some meetings.
i've went through it so, so slowly and continue to get an end of statement or application defind or object defined error. here is the entire code:
also, this DID work, meaning it pasted into excel, however, the hyperlink code itself does not function. it needs the #.
For Each NewCell3 In CCTOCList
Range("I" & currentRow2) = "=hyperlink(" & Range("O" & currentRow2).Value & "!BK9,""" & Range("O" & currentRow2).Value & """)"
currentRow2 = currentRow2 + 1
Next NewCell3
Sub RunHyperLinks()
Dim ws As Worksheet
Dim NewCell2 As Range
Dim arC
Dim Lastrow As Integer
Dim ARC2 As Range
Dim CurrentRow As Integer
Dim NewCell3 As Range
Dim CCTOCList As Range
Dim currentRow2 As Integer
Dim AddressR As Range
Set ws = Sheets("Key")
arC = ws.Range("i2").Value
Range(arC).Copy
Sheets("Control Page").Range("I6").PasteSpecial Paste:=xlPasteValues
Sheets("Control Page").Activate
Lastrow = Range("I65536").End(xlUp).Row
Set ARC2 = Range("J6:J" & Lastrow)
CurrentRow = 6
For Each NewCell2 In ARC2
Range("J" & CurrentRow).Value = "=VLOOKUP(I" & CurrentRow & ",CCLIST,2,FALSE)"
CurrentRow = CurrentRow + 1
Next NewCell2
Set CCTOCList = Range("i6:i" & Lastrow)
currentRow2 = 6
Range("I6:I" & Lastrow).Copy
Range("o6").Select
Sheets("Control Page").Range("o6").PasteSpecial Paste:=xlPasteValues
For Each NewCell3 In CCTOCList
Range("I" & currentRow2) = "=HYPERLINK(" & """#'""" & Range("O" & currentRow2).Value & "'!BK9,""" & Range("O" & currentRow2).Value & """)"
currentRow2 = currentRow2 + 1
Next NewCell3
Range("O6:O" & Lastrow).Delete
Range("A1").Select
End Sub
Bookmarks