+ Reply to Thread
Results 1 to 4 of 4

Code works fine in 2003 excel but fails in 2007

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Dublin, Ohio, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Code works fine in 2003 excel but fails in 2007

    Hey everyone,
    Pretty self-explanatory: some of our computers use 2003 and some use 2007. The code was made on the 2003 version but when the file is opened by a 2007 version excel it doesn't work as intended.

    There are hyperlinks in one file that, when clicked, go to another worksheet in the same file and highlight the appropriate row. Here is the code that is coming up for both but it's not working on 2007 for some reason. I think there must be an easy fix for this right?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Code works fine in 2003 excel but fails in 2007

    When you say it doesn't work, how does this "not working" manifest itself. Does it not do anything? Does it fail with an error message? Does it stop at a line of code?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    Dublin, Ohio, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Code works fine in 2003 excel but fails in 2007

    It hyperlinks to the correct worksheet but then it doesn't highlight the correct row within the worksheet. For example, in 2003 version we click on Company J's hyperlink and it moves to the general company information worksheet and highlights Company J's information and scrolls down to make it visible if needed.
    In the 2007 version when we click on Company J's hyperlink it'll move over to the general company information sheet and will choose the right row but won't highlight.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Code works fine in 2003 excel but fails in 2007

    I've just put your code in a workbook I've been testing and it works just fine. Admittedly, not very exciting testing but it proves the point.

    Try it in an empty book.


    Regards, TMS

+ 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