+ Reply to Thread
Results 1 to 2 of 2

Follow Hyperlink Macro only works in Pause/Break Mode

  1. #1
    Registered User
    Join Date
    12-08-2015
    Location
    Cincinnati
    MS-Off Ver
    365
    Posts
    26

    Follow Hyperlink Macro only works in Pause/Break Mode

    Hello.
    As part of a macro I am working on, I would like Excel to follow/open a hyperlink to another Excel workbook.

    When I CLICK ON THE HYPERLINK in the workbook, I get the warning about making sure the file is from a trustworthy source, I hit ok, and the workbook file opens just fine.

    But when I RUN THE MACRO, I get the warning about making sure the file is from a trustworthy source, I hit ok, but then the hourglass comes up, Excel pauses for a moment and then nothing happens.

    If I change the hyperlink to be a Word Doc, then when I RUN THE MACRO it opens just fine. Word starts and the document opens.

    I did find a clue I think. I accidentally hit the pause/break button when testing the macro. I then hit resume and ran the macro again and it worked as it should?!? But it only works in the VB window. I tried mapping the macro to a button in the workbook after things were working, but when I clicked it to run the macro things behaved as before. The file wouldn’t open.

    Why does it work after the pause/break button has been pressed, and only in the VB window?
    Is there a way I can recreate that effect of pause/break in the macro as it runs so that it always works as it should. Thanks for any and all help!

    The code I am using to follow the hyperlink is below:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Follow Hyperlink Macro only works in Pause/Break Mode

    I see three threads started by you this month regarding hyperlink problems in macros.

    None of these is marked as solved. Are these the same issue?

    Above your very first post there's a drop down box marked thread tools.

    In that box there's an option to mark the thread as solved, please use this option when your thread is solved. I would suggest if your issue in the other two was not solved you should try to get them solved and work from there, not post more threads. If they were solved, please mark them as such.
    Last edited by skywriter; 12-18-2015 at 01:50 PM.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

+ 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] Macro that works like Subtotal Average, except for Mode
    By engineerlady in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2013, 09:56 PM
  2. Works in break mode, but not compiled
    By WadeLair in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-05-2013, 12:27 PM
  3. Any way to run a macro from VBE while in break mode
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2013, 05:51 PM
  4. [SOLVED] do until loop error, only works in break mode
    By etuckram in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-23-2012, 12:14 AM
  5. User form macro opening in break mode
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2011, 06:49 PM
  6. Follow Hyperlink with Macro
    By Nidivre in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-26-2010, 10:46 PM
  7. Can I use VBA to check if the sheet(xxx) is in Page-Break mode or Normal mode ?
    By BaLLZaCH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2008, 09:03 AM
  8. Macro Works but not in Debug Step mode
    By Bob Smedley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2006, 12:35 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