+ Reply to Thread
Results 1 to 3 of 3

Sheet level code fails when accessed via hyperlink

Hybrid View

  1. #1
    Registered User
    Join Date
    03-17-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    69

    Sheet level code fails when accessed via hyperlink

    Hi Guys,

    I am using a consolidation algorithm to pull in a bunch of info from a load of files. This works well for now. One of the things that it does is provide a hyperlink to each of the files it searches. This works. BUT, when I access one of those files, the sheet level code fails to run. The files to which I huperlink are supposed to open a second file as soon as they open - this does not happen. Sheets within the hyperlinked file are supposed to hide themselves as soon as they are de-activated - this does not happen. Basically, none of the code in the hyperlinked sheets will run on its own, as an event, as it is supposed to. I can force it to work by manually doing it as a macro.... but that is useless!

    So any ideas as to what is happening differently when i open a file via hyperlink as opposed to opening it directly via explorer?

  2. #2
    Registered User
    Join Date
    03-17-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Sheet level code fails when accessed via hyperlink

    No ideas? I cannot find anything that helps with this. I presume it is an excel setting for security but I do cannot seem to get around it.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sheet level code fails when accessed via hyperlink

    Not entirely sure I follow...

    If you're hyperlinking to a specific range in the other workbook then the Activate Event of the Target Sheet Object won't fire if the Target object is active on open
    (the Workbook Open Event will obviously fire regardless)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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