I'm trying to open links via vba but I'm having lots of problems, here is what I was using previously:
Sub OpenUrl()
With Application
.ScreenUpdating = False
.EnableEvents = False
.Calculation = xlCalculationManual
.DisplayAlerts = False
End With
Dim lSuccess As Long
Dim LastRow as Long
LastRow = Range("A65536").End(xlUp).Row
For Cell = LastRow To 1 Step -1
'lSuccess = ShellExecute(0, "Open", Range("D" & Cell).Value)
ThisWorkbook.FollowHyperlink (Range("D" & Cell).Value)
Next Cell
With Application
.ScreenUpdating = True
.EnableEvents = True
.Calculation = xlCalculationAutomatic
.DisplayAlerts = True
End With
End Sub
However when it gets to the ThisWorkbook.Followhyperlink
part it throws a "Out of memory" even though my system has 64GB of memory.
Trying the shell execute route from: http://support.microsoft.com/kb/224816 doesn't work either for me as it returns:
Anyone have any ideas?