I have a group of worksheets that I want to cycle through and look in column A for a hyperlink. If the cell has a hyper link in it I want to copy the entire row to the work sheet pTable. I have pieced the code below together as a first step to copy the just the link but it does not work with the .columns("A:A") porperty. It will work if I change it to .range but then I get every hyperlink on the sheet. Any Ideas? Thanks!
Sub Createprogramlist()
'finds hyperlinks and copies to pTable
Dim rCell As Range
Dim wSheet As Worksheet
Dim hLink As Long, cLink As Long
ThisWorkbook.Activate
For Each wSheet In Worksheets
If wSheet.Name <> "WebLaunch" And wSheet.Name <> "Tables" And wSheet.Name <> "pTable" Then
For hLink = 1 To wSheet.Columns("A:A").Hyperlinks.Count
'need to get hLink in column A
wSheet.Hyperlinks(hLink).Columns("A:A").Activate
wSheet.Hyperlinks(hLink).Columns("A:A").Copy _
Sheets("pTable").Cells(Rows.Count, 1).End(xlUp)(2, 1)
Next hLink
End If
Next wSheet
End Sub
Sub Createprogramlist()
'finds hyperlinks and copies to pTable
Dim rCell As Range
Dim wSheet As Worksheet
Dim hLink As Long, cLink As Long
ThisWorkbook.Activate
For Each wSheet In Worksheets
If wSheet.Name <> "WebLaunch" And wSheet.Name <> "Tables" And wSheet.Name <> "pTable" Then
For hLink = 1 To wSheet.Columns("A:A").Hyperlinks.Count
'need to get hLink in column A
wSheet.Hyperlinks(hLink).Columns("A:A").Activate
wSheet.Hyperlinks(hLink).Columns("A:A").Copy _
Sheets("pTable").Cells(Rows.Count, 1).End(xlUp)(2, 1)
Next hLink
End If
Next wSheet
End Sub