Forum Discussion
Greg Bonaparte
Mar 21, 2020Iron Contributor
I'm getting compile error Else without if
I'm getting "compile error Else without if". Anyone know why? Sub AddSymbols() ' ' ' ' Range("BC3:BI3").Select Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True A = MsgBo...
JKPieterse
Mar 24, 2020Silver Contributor
Greg Bonaparte Update your code to:
Sub AddSymbols()
'
'
'
'
Range("BC3:BI3").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
A = MsgBox("Add Additional Symbols?", vbQuestion + vbYesNo, "HonorSystem24")
If A = vbNo Then
Call PasteLastLine
ElseIf A = vbYes Then
End If
End Sub