+ Reply to Thread
Results 1 to 2 of 2

Force PDF url opening without warning

  1. #1
    Registered User
    Join Date
    04-14-2019
    Location
    Barcelona, Spain
    MS-Off Ver
    Office 365
    Posts
    9

    Force PDF url opening without warning

    Hi,

    I have this piece of code at the root of my sheet, whose aim is to open a URL, which actually is an online PDF

    Please Login or Register  to view this content.
    (I had to remove the link cause I don’t have the rights to post one)

    Unfortunately, since it’s a PDF file, it triggers a popup that the source may be untrustworthy, asking to validate the action by hitting OK or cancel.

    Would there be a piece of VBA code to bypass this warning message, and force the PDF opening right away ?
    I need it to work on this link alone, and with any default browser.

    Thanks for your time

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Force PDF url opening without warning

    This works for me for a PDF file on my local PC.

    Just change the path in the variable myURL to your real internet web URL and run the code to see if it works for you....

    Please Login or Register  to view this content.

    .

+ 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. Replies: 7
    Last Post: 10-09-2019, 07:28 AM
  2. Replies: 5
    Last Post: 12-08-2012, 04:51 AM
  3. Customizing opening warning
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-01-2010, 04:20 PM
  4. force update between two spreadsheets w/out opening?
    By 1james in forum Excel General
    Replies: 2
    Last Post: 04-11-2009, 09:13 AM
  5. Excel Session timer 10min splash screen Warning then 15min force close
    By Phil_pac in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-20-2009, 12:31 PM
  6. Force Excel to direct user to a specific worksheet upon opening
    By somesunnyday in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2008, 06:11 PM
  7. How to force toolbar view options when opening and closing
    By ducecoop in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-20-2008, 11:35 AM
  8. Opening warning
    By Michael Raphael in forum Excel General
    Replies: 3
    Last Post: 07-05-2006, 03:20 AM

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