I am trying to extract hyperlink address from one column to a column of interest via inputbox. Find below my code
Sub ExtractHL()
Dim HL As Hyperlink
Dim alpha As Integer
Dim beta As Integer
On Error GoTo ErrHandling
alpha = InputBox("Column number to paste hyperlink addresses", "Your Input Required")
beta = ActiveCell.Row
For Each HL In Selection.Hyperlinks
Cells(beta, alpha).Value = HL.Address
beta = beta + 1
Next HL
MsgBox "Process Completed Successfully."
End Sub
It is showing error at the red colored code. Please suggest the correction. Thank you.
Sub ExtractHL()
Dim HL As Hyperlink
Dim alpha As Integer
Dim beta As Integer
On Error GoTo ErrHandling
alpha = InputBox("Column number to paste hyperlink addresses", "Your Input Required")
beta = ActiveCell.Row
For Each HL In Selection.Hyperlinks
Cells(beta, alpha).Value = HL.Address
beta = beta + 1
Next HL
MsgBox "Process Completed Successfully."
End Sub
It is showing error at the red colored code. Please suggest the correction. Thank you.