Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7278233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:50:49+00:00 2026-05-28T22:50:49+00:00

I am doing project in powerpoint 2007 automation. In that i am using macro

  • 0

I am doing project in powerpoint 2007 automation. In that i am using macro programming (VBA). I am getting the following error while run the macro.

Err.Number= -2147024809 (80070057)

but my concern is not with error Because i want to catch this error and base on this error i want to perform some action.

Thats why i try to code like this for error handing code:

OnError Goto Err:
'some code

Err:
If Err.number = -2147024809 (80070057) then
'do something
end if
Resume next

So bascially if i write error number in this way then its not allow it. it gives error.

and major thing is when error occurs sometime it did not go to “Err : “. It just pop-up error with “End” and “Debug” options.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:50:49+00:00Added an answer on May 28, 2026 at 10:50 pm

    While it seems to work, I’d be cautious about using a reserved object name (Err) as a label, for one thing.

    On Error GoTo ErrorHandler
    
    ' Your code here
    
    ' Make sure you don't hit the errorhandler when there's
    ' no error:
    NormalExit:
    Exit Sub ' or Function, whichever this is
    
    ErrorHandler:
    If err.Number = 123456788 Then
        ' Take corrective action
        ' then continue
        Resume Next
    End If
    ' Trap other specific or general errors here
    
    ' Then make sure you know where you're going to exit:
    Resume NormalExit
    

    If you need to trap very specific errors that might occur only at certain places in your code, you can also do a local errorhandler:

    On Error Resume Next
    
    ' Some code that might cause problems
    
    ' Did it throw the error you're trying to trap?
    If Err.Number = 12398745 then 
      ' Corrective action
    End If
    
    ' And now we return to our regularly scheduled error trapping
    On Error GoTo ErrorHandler
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m doing project in opencv... i m getting error like this Unhandled exception
I am doing project using Java and in that I need to reload whole
After doing a project with WPF and getting very much attached to it's excellent
I'm doing a project in seam that requires restful URLs. I have a view
while doing flex project iam unable to start my Jboss server. can any one
I am doing a project that has dependencies on some classes from the mahout
I am doing project in vb.net using ms access database I used one query
I am doing a project that recognize human face from camera. Here is the
I'm currently doing a project for a Beginner C programming class where i'm supposed
I am doing a project on online medical transcription training. For that we are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.