+ Reply to Thread
Results 1 to 4 of 4

Need a button to open an external file.

  1. #1
    Registered User
    Join Date
    06-03-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    10

    Need a button to open an external file.

    I have a Hyperlink to a file on another drive that works located in cell H12 as the results of a VLOOKUP function.

    The Hyperlink address will change every time the form is used as the linked file will be different each time the form is used.

    I just need the command button to open the hyperlink referenced in cell H12.

    The link address in the H12 is a complete hyperlink address for the PDF file I am trying to open. And that link works when clicked on.

    I don't want to click a hyperlink, I want to click on a button.

    I have tried to record a macro to follow the link but the recorder does not pick up when i click on the link.

    The hyperlink works when I record the macro. Afterwards I assign the Macro to a button, but the button does not open the link.

    Thanks a lot, Dennis

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need a button to open an external file.

    Try
    Please Login or Register  to view this content.
    or more likely to work

    Please Login or Register  to view this content.
    Last edited by kev_; 08-02-2017 at 03:09 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    06-03-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    10

    Re: Need a button to open an external file.

    Kev,
    My previous thank you was lost in my poor internet connection.

    I tried both of those and only got an error message.

    Run-time error '438':

    Object doesn't support this property or method

    thanks again for your reply

    dennis

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need a button to open an external file.

    Please attach a workbook so that I can see how the link is created in your file
    - do not change anything in the way it works
    - that will allow me to create matching paths
    - I will then replicate here and get it working for me
    - then I will send the file back to you

    ManageAttachments3.jpg

+ 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. External Data from Microsoft Query - Excel File - Causes external file to open.
    By lee1000d in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2015, 02:25 PM
  2. Formula to open external file with especific program (like open with)
    By pemartins in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-14-2014, 06:38 PM
  3. shell to open external bat file
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2013, 12:28 AM
  4. Open an external File
    By Epscan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2011, 04:17 PM
  5. Macro to open external file
    By redders in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-03-2010, 02:00 AM
  6. External file references must be open?
    By DavidRennox in forum Excel General
    Replies: 1
    Last Post: 08-03-2006, 04:40 PM
  7. open an external file
    By Vince in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2006, 03:29 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