+ Reply to Thread
Results 1 to 4 of 4

Message Box

  1. #1
    Registered User
    Join Date
    02-06-2006
    Posts
    13

    Message Box

    I don't know whether this is possible but I would like to create a message box to overrise the RunTime Error message "1004"?

    I don't want users to be able to de-bug.

    Can anyone help?

    Thanx
    Alex
    Last edited by alexandra60; 11-19-2007 at 07:17 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning alexandra60

    Try using the line
    Please Login or Register  to view this content.
    fairly early on in your code. This will mean that if your code hits an error, then that line will be ignored and the next line will be executed. You really should try and build in some kind of error reporting system though, so users know if there has been a problem and if the routine hasn't executed properly.

    Alternatively, password protect the VBE. If you do that, then the code will still stop, but the option to debug will be ghosted out.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    02-06-2006
    Posts
    13
    I would like to do some sort of error reporting... but I don'r know where to start, is it really complicated??

    Alex

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi alexandra60

    If you want further help, can you post (at least) a portion of your code and point out at which place it falls down. Then perhaps someone can advise you how to trap it without using OnError.

    HTH

    DominicB

+ 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