+ Reply to Thread
Results 1 to 4 of 4

Bypass SECURITY WARNING when opening an xlsx wb via VBA.

  1. #1
    Registered User
    Join Date
    07-03-2024
    Location
    Gainesville, FL
    MS-Off Ver
    Office 365
    Posts
    3

    Bypass SECURITY WARNING when opening an xlsx wb via VBA.

    I am trying to open an xlsx file via VBA in a xlsm wb so that the xlsx sheet contents can be copied into the xlsm wb, but I am having trouble bypassing a "SECURITY WARNING External Data Connections have been disabled" prompt that occurs after issuing the Workbooks.Open command (below).

    SECURITYWARNING_Excel.png

    Please Login or Register  to view this content.
    For the UpdateLinks param I have tried:
    • Not using it.
    • Setting it = True.
    • Setting it = False.
    • Using an Enter via Sendkeys.

    None get me past the prompt.

    Thoughts would be appreciated. Thx!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,009

    Re: Bypass SECURITY WARNING when opening an xlsx wb via VBA.

    Why do you need to bypass it?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    07-03-2024
    Location
    Gainesville, FL
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Bypass SECURITY WARNING when opening an xlsx wb via VBA.

    It opens and displays the xlsx wb without displaying the SECURITY WARNING message- I know it's there because I see it when I open the xlsx wb manually. I have to click in the xlsm wb and invoke the copy function again for it to actually get past the workbooks.open command. Ideally, the xlsm wb should open the xlsx wb, copy the data into itself, and close the xlsx wb without the user even seeing the xlsx wb.

  4. #4
    Registered User
    Join Date
    07-03-2024
    Location
    Gainesville, FL
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Bypass SECURITY WARNING when opening an xlsx wb via VBA.

    I just discovered a video that shows how to get data from a closed Excel wb, so I'll post the info if it proves successful.

+ 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. Run script to automatically enable macros to bypass Security Prompt
    By heytherejem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2017, 09:21 AM
  2. Replies: 6
    Last Post: 02-28-2017, 02:58 AM
  3. Replies: 1
    Last Post: 01-24-2013, 08:03 AM
  4. [SOLVED] How to Bypass Macro Security Warning Message in MS Word 2003 programmatically
    By sugaprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 08:45 AM
  5. Bypass Outlook Security Warning?
    By lisa_jd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2011, 12:31 PM
  6. Opening Excel files with Macro Security Warning
    By tdf2437 in forum Excel General
    Replies: 6
    Last Post: 01-13-2010, 06:03 PM
  7. Replies: 7
    Last Post: 03-04-2009, 11:39 PM

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