A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I found that there was a typo in the code. Here is the correct code:
[Sub VISTA()
Dim Msg As String, Ans As Variant
Msg = "Would you like to open the USA Jobs Class schedule?"
Ans = MsgBox(Msg, vbYesNo)
Select Case Ans
Case vbYes
Dim MyFolder As String
MyFolder = "C:\ProgramData\Attachmate\Reflection\R04-reflection.r2w"
ActiveWorkbook.FollowHyperlink MyFolder
End Select
End Sub]
When I removed the S at the end of r2w, I now get the error code Runtime error !-2147417851 (80010105)!:
method !followhyperlink! of Object!_workbook! failed. it still hangs in the same location: [ ActiveWorkbook.FollowHyperlink MyFolder].