+ Reply to Thread
Results 1 to 3 of 3

proper Subscript out of range

  1. #1
    Registered User
    Join Date
    11-20-2009
    Location
    England
    MS-Off Ver
    Excel 2010 @ Work and Excel 2007 @ Home
    Posts
    10

    proper Subscript out of range

    The folloing code works perflectly in 2003 but now under 2007 the first ".find" statement give me a subscript out of range error message. Whats going on? The code still looks valid to me.

    Please Login or Register  to view this content.
    This is just an excerpt so you'll have to take my word that wbNewWorkBook is a valid workbook object.

  2. #2
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    re: proper Subscript out of range

    Coder,

    If I run this code as is in 2003 or 2007 I get the subscript out of range error message. However, if I change the line from this:

    Please Login or Register  to view this content.
    to this:

    Please Login or Register  to view this content.
    it works for me (or at least for this snipit of code, no errors).

  3. #3
    Registered User
    Join Date
    11-20-2009
    Location
    England
    MS-Off Ver
    Excel 2010 @ Work and Excel 2007 @ Home
    Posts
    10

    re: proper Subscript out of range

    Ah yes, thank you, that does it. I've no idea why LookIn worked before but there you go. I should of twigged really as I looked up XlPart in the object browser and it came up under the XlLookAt class... that's what you get working late on a Friday I guess.

+ 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