+ Reply to Thread
Results 1 to 5 of 5

Help with Error Handling

  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Help with Error Handling

    Hi All,
    *
    Firstly let me thanks to the admin and all the members for
    their wonderful job which they are contributing in this great forum. I have
    learnt a lot from all of you.

    Please see below specific points for what I have and what I need, apologies in advance if I this is not very clear

    I want a function where user has to get a msg " You are taking an incorrect worksheet and lal al "" instead of scary error message

    I tried to create on but not working out here is the code

    Please Login or Register  to view this content.
    Last edited by vpnvipin; 11-06-2012 at 02:45 AM.
    Vipin Oceans

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Help with Error Handling

    You need to create a errorhandler label. Before your error msgbox, add ErrorHandler:

  3. #3
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Re: Help with Error Handling

    Hi ,

    Still its not pulling .. my actual error msg is Runtime error '9' subscript out of range

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Re: Help with Error Handling

    I tried adding errhandler just before msgbox also .. not workign

  5. #5
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Re: Help with Error Handling

    Sorry I got It now , its working .. I made a mistake at putting ' on 'On Error GoTo ErrorHandler

    Thanks a lot Sindhu

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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