+ Reply to Thread
Results 1 to 9 of 9

error handling - sheets.activate

  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    manchester, england
    MS-Off Ver
    Excel 365
    Posts
    37

    error handling - sheets.activate

    why doesn't this work?

    Please Login or Register  to view this content.

    I still get a runtiime error

    thanks for any help
    Last edited by inspector-71; 02-04-2010 at 08:33 AM. Reason: sorry - in code wrapper now

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: error handling - sheets.activate

    Hey inspector-71

    add some code tags for the answer
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: error handling - sheets.activate

    hey inspector-71
    this should do the trick..
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-11-2009
    Location
    manchester, england
    MS-Off Ver
    Excel 365
    Posts
    37

    Re: error handling - sheets.activate

    i still get runtime error 9 - subscript out of range

  5. #5
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: error handling - sheets.activate

    pike's code works just fine - I don't get any error.
    Can you provide more info or upload sample workbook where you get the error?
    If you are pleased with a member's answer then use the Star icon to rate it.

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: error handling - sheets.activate

    does seam strange
    Try...
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-11-2009
    Location
    manchester, england
    MS-Off Ver
    Excel 365
    Posts
    37

    Re: error handling - sheets.activate

    nope, it's still the same error - I just tried it in a different book to make sure it wasn't something in my current file preventing it from working

  8. #8
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: error handling - sheets.activate

    OK, in VBE go to Tools->Options
    On Tab "General" find Error Trapping (on the right side of the form)
    See which option is selected. May be you have selected Break On All Errors.
    Select Break oh Unhadled Errors.

  9. #9
    Registered User
    Join Date
    06-11-2009
    Location
    manchester, england
    MS-Off Ver
    Excel 365
    Posts
    37

    Re: error handling - sheets.activate

    that was it, thanks

+ 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