+ Reply to Thread
Results 1 to 9 of 9

How to disable hyperlink warning messages?

  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Unhappy How to disable hyperlink warning messages?

    Hello friends,

    I used hyperlink connection to open few link to pull the data.
    Warning message appears like: some files can contain viruses or otherwise be harmful to your computer.... with OK & Cancel button.
    Please anyone can help how to disable this message.

    Run the hyperlink in loop, warning message shown for continue to loop end. Manual click OK there after go to the next.

    if possible macro code to click OK button or some other method.

  2. #2
    Registered User
    Join Date
    07-25-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    27

    Re: How to disable hyperlink warning messages?

    Is the warning message generated by OS or by Excel?

    You could use

    Please Login or Register  to view this content.
    Application.DisplayAlerts = False
    Please Login or Register  to view this content.
    Last edited by DJohnny; 08-06-2014 at 06:29 AM.

  3. #3
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: How to disable hyperlink warning messages?

    thanks DJohnny,

    i used Application.DisplayAlerts = False, still warning msg came.

  4. #4
    Registered User
    Join Date
    07-25-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    27

    Re: How to disable hyperlink warning messages?

    Can you put the code or the file to preview the code?

  5. #5
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: How to disable hyperlink warning messages?

    Here is the code:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-29-2011
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: How to disable hyperlink warning messages?

    Please try the following before your code, then the second code after to switch back on:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Edit: I usually use xlCalculationAutomatic twice after, as there have been occasions where the switch hasn't worked when it was in there once. I think the EnableEvents is what will fix your issue, so you could just try that :-)

  7. #7
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: How to disable hyperlink warning messages?

    thanks Jennasis .

    I used your codes, but still shown the warning msg.

  8. #8
    Registered User
    Join Date
    12-11-2018
    Location
    Montreal
    MS-Off Ver
    LAST ONE (SUBSCRIBE TO AUTOMATIC UPDATES)
    Posts
    1

    Re: How to disable hyperlink warning messages?

    the following works for me:
    I have the full path of the MSG file I want to open

    I add this to my macrob declaration:
    Please Login or Register  to view this content.
    then I add this inside my macro:
    Please Login or Register  to view this content.
    Last edited by AliGW; 03-10-2019 at 04:01 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: How to disable hyperlink warning messages?

    Welcome to the forum!

    The thread to which you have posted is well over four years old - did you realise?

    The OP was not asking how to display an error message, rather how to suppress one.

    Administrative Note

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html

    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Disable prompt messages
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-25-2014, 01:00 PM
  2. Disable Hyperlink Warning in Excel 2010
    By mubashir aziz in forum Excel General
    Replies: 6
    Last Post: 07-16-2012, 03:00 AM
  3. Disable security messages
    By walduxas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2009, 02:56 AM
  4. [SOLVED] Outlook Warning Messages
    By AD108 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2006, 01:10 PM
  5. [SOLVED] Disable cell warning/error messages
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2006, 07:35 PM

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