+ Reply to Thread
Results 1 to 10 of 10

Error Report

  1. #1
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Cool Error Report

    Hi guys,

    What i'm trying to do is to have an error report when i execute my macro, i have this code for a simple exemple:

    Please Login or Register  to view this content.

    In fact what i need in addition if this is to have the line number where the error was found.
    Is there a code to do that?

    Thanks for your help.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,989

    Re: Error Raport

    You can use Erl but you would need to actually add the line numbers to your code for it to work.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Re: Error Report

    Is there a code to add the line numbers to the code or should i do it manually??

  4. #4
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Re: Error Report

    I wrote this code:

    Please Login or Register  to view this content.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Error Report

    You might be interested in: http://www.mztools.com/v3/mztools3.aspx

  6. #6
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Re: Error Report

    Thank youuuuu this will help me a lot thanks

  7. #7
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Re: Error Report

    After i've add the lines number to my code how can i use the Erl function?
    Does anyone have an exemple for that please

    Thanks for your help

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Error Report

    You can just Erl to tell you on which line the error occurred, eg:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Re: Error Report

    Hi guys,

    i have a new problem with my error report, in fact what i need to do is an inputbox where i can put the name of my Macro to execute: "Module1.MacroName" but the problem is that when i want to execute my macro it doesn't work.
    here's the code:

    Please Login or Register  to view this content.
    I don't know where is the problem i have in the beginnig of the Macro: On Error GoTo analyse but when it enter in Test this dosen't work.

    Does anyone knows how to solve this problem please.

    Thanks for your help

  10. #10
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,989

    Re: Error Report

    This is a completely different question, so I suggest you start a new one.

+ 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