+ Reply to Thread
Results 1 to 2 of 2

Help!! When cancel command button in excel vba runtime error!!!

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Help!! When cancel command button in excel vba runtime error!!!

    I'm trying to get the following code to work properly... I'm sure I'm missing something silly


    Private Sub CommandButton1_Click()

    ActiveWorkbook.FollowHyperlink Address:="http://www.thisplace.doc", NewWindow:=True

    End Sub


    When click, and I get the following "Some files contain viruses...etc." When "OK"ed it download document properly. When Cancelled Run time error '287' to debug. I do not think users will always 'ok', so it's a big problem and i'm stumped! When cancelled it should just return to ActiveSheet. I'd prefer if I could have no pop ups at all, just the document. Can someone help please?? Thank you!

  2. #2
    Registered User
    Join Date
    07-22-2013
    Location
    patiala
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help!! When cancel command button in excel vba runtime error!!!

    try this

    Please Login or Register  to view this content.
    Last edited by kmap; 07-22-2013 at 11:58 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to stop error when I cancel the input file source command?
    By XxCMoneyxX in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-15-2013, 03:23 PM
  2. Runtime error 1004 while refresh button clicked and focus changed
    By sonypjoy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 01:43 PM
  3. [SOLVED] Runtime Error using Command Button when Worksheet is Protected
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 09:17 AM
  4. Cancel button, False.xlsx error occur
    By arthenian11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2012, 05:00 AM
  5. Inputbox cancel button error.
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2010, 06:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1