+ Reply to Thread
Results 1 to 4 of 4

prevent excel from warning about external files

  1. #1
    Registered User
    Join Date
    03-23-2020
    Location
    Seattle, USA
    MS-Off Ver
    365 business
    Posts
    10

    prevent excel from warning about external files

    We have spreadsheets that will load various external documents, mostly PDF's and DWG files, when certain buttons are clicked upon. Each time, Excel warns us about the external files, and it's an annoyance, we don't want to be warned, these files are at a trusted location on our local network. We've been through the trust center settings many times, and nothing we do seems to fix this problem, any suggestions?

    sc_20230724060423.png

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: prevent excel from warning about external files

    I use this but I don't know if it includes this particular warning/notice. put the false statement at the beginning of your code and put the true at the end...

    HTH

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    12-22-2022
    Location
    California
    MS-Off Ver
    2016
    Posts
    21

    Re: prevent excel from warning about external files

    Hey,

    Here are some other methods you can try-
    1. Certain settings relating to external content and warnings may be enforced by the IT department if you work in a corporate setting and your computer is managed by a Group Policy. You might need to get help from your IT support in such circumstances.
    2. From the Properties Window, unblock files:
      Right-click on a file after saving the external files to a reliable location.
      "Properties" can be chosen from the context menu.
      Find the "Security" section at the bottom of the Properties dialogue box.
      If a "Unblock" button is present, click it to release the file.
    3. The "Enable All Data Connections" option should be enabled.
      Navigate to the "File" menu in Excel.
      The Excel Options dialogue box will appear when you click "Options."
      Select "Trust Centre" in the left pane, and then click the "Trust Centre Settings" button.
      Pick "External Content" in the left pane of the Trust Centre dialogue box.
      The "Enable all data connections (not recommended)" checkbox must be selected.
      To make the changes, click "OK".

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: prevent excel from warning about external files

    @dbooth88, your pictured warning is actually generated by the HLINK.dll, not Excel/Office.
    https://learn.microsoft.com/en-US/mi...erlink-warning
    https://social.technet.microsoft.com...-from-hlinkdll

    In the past, I tried various changes to Trust and Alert settings, and even a few registry hacks, to get rid of it - all to no avail. In the end, the only way I found to avoid that message was to bypass HLINK altogether by opening files using the ShellExecute API function, as demonstrated below:
    Please Login or Register  to view this content.
    This example defines the Open_Link function in a standard module to serve as an interface you can call from anywhere in your project. It takes a filename as input and passes it to ShellExecute, which attempts to open the file. If successful, Open_Link returns True; otherwise it returns False.

    Note that you can also open URL's with ShellExecute, although you would need additional code to verify success.
    And finally, HERE'S a similar thread that modifies hyperlinks to avoid the same warning in a similar fashion.
    Last edited by leelnich; 07-26-2023 at 02:43 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

+ 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] Prevent save warning messages regarding read-only files
    By Jerbinator in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2015, 06:05 PM
  2. Excel - Auto Timeout on Idle, Warning, Prevent Work until Macro enabled
    By kevin1010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2013, 07:29 AM
  3. Prevent Excel from creating external references
    By mat.davies in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2013, 06:13 PM
  4. Prevent excel from updating external file links
    By Dulanic in forum Excel General
    Replies: 1
    Last Post: 11-16-2010, 05:25 PM
  5. How to prevent copying of excel files?
    By Goldstar in forum Excel General
    Replies: 1
    Last Post: 12-20-2007, 05:15 PM
  6. Prevent Excel from creating temp files?
    By WhiteFalcon in forum Excel General
    Replies: 0
    Last Post: 04-12-2007, 02:11 AM
  7. [SOLVED] How to prevent saving over Excel and Word Files
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2005, 11:05 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