Ever since I added the following code to my sheet (which is activated by a button), the performance of my sheet is A LOT slower. Are there any ideas as to why? Thanks in advance for the help.
Code:
Sub insertVeryLongHyperlink()
Dim curCell As Range
Dim longHyperlink As Variant
Dim x As Integer
Dim situation As Variant
Dim emails As Variant
Dim tdate As Integer
Dim sdate As Integer
x = 2
Do
situation = Cells(x, 1)
emails = Cells(x, 6)
Set curCell = Range("G" & x) ' or use any cell-reference
longHyperlink = "mailto:" & emails & [G1] & "?subject=" & situation & " Thread" & "&body= Please use this email thread to communicate updates and next steps" ' Or a Cell reference like [C1]
curCell.Hyperlinks.Add Anchor:=curCell, _
Address:=longHyperlink, _
SubAddress:="", _
ScreenTip:=" - Click here to create email thread", _
TextToDisplay:="Create " & situation & " Email Thread"
x = x + 1
Loop Until Cells(x, 6) = 0
End Sub