Suppress MSOffice warning through VBA

Posted on 2008-11-06
Last Modified: 2013-11-27
I have a piece of code that runs the show desktop button in the quick launch bar.  The problem is that it is a Windows Explorer Command (.scf extension) .

When I run the code I get a warning that says:

"opening program can contain viruses or be harmful to your computer be certain that this file is from a trustworthy source"
"Would you like to open this file?"

Is there a way to suppress this warning?  It says its coming from MSOffice so I don't think it is exclusive to Access I think it may be apart of VBA or the Office Family

Here is the code:

Here is the code in VBA

Application.FollowHyperlink "C:\test.scf"

This is the .scf file 





Open in new window

Question by:ClaudeWalker
    LVL 119

    Accepted Solution

    see this link
    How to disable hyperlink warning messages in Office 2003

    Author Comment

    Thats what I was looking for.  I am not sure if that will be a viable solution because then users could click other hyperlinks outside of Access and not get a much needed (in their cases) warning.

    but this did answer my question,

    JOe K.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now