View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Fraggs[_6_] Fraggs[_6_] is offline
external usenet poster
 
Posts: 1
Default Excel VBA - "IF Answer = Problem"

I'm using the code below to make a msgbox:

Answer = MsgBox("Do you wish to open part one ?", _
vbOKCancel, "My Title")
If Answer = vbCancel Then Exit Sub
If Answer = vbOK Then ActiveWorkbook.FollowHyperlink Address:= _
"Q:\path is here\baook1.xls" _
, NewWindow:=False, AddHistory:=True
Sheets("Mar_04").Select
Range("A1").Select

But it isnt working and I have no idea how to fix this problem. An
helpmwould be greatly appreciated. :

--
Message posted from http://www.ExcelForum.com