Good day,
My IT director created this snippet of code and asked that I insert it in a much larger project. This snippet seems to take forever to run. Can someone take a look and see if there is a way to make it run faster. It looks to me as if he has coded this to go top down and it runs through every row of the excel file. I am running 2007 and there are 1 million rows but there is data in less than 2000 of them. HELP!!!
Dim c As Range
Dim intHold As Integer
Dim strFormula As String
Dim strURL As String
strURL = “http://www.yourpage.com/por/s/process/CompPORES.cfm?Number=”
For Each c In Range(“J:J”)
If IsNumeric(c.Value) And (c.Value > 0) Then
intHold = c.Value
c.Formula = “=HYPERLINK(“”” & strURL & intHold & “””, “”” & intHold & “””)”
End If
Next c
‘ end of Hyperlink code
End Sub