Results 1 to 3 of 3

on error goto

Threaded View

  1. #1
    Registered User
    Join Date
    09-13-2008
    Location
    Barrie, ON, CA
    Posts
    47

    on error goto

    hello,

    I'm using a on error goto approach, heres the code.

    On Error GoTo ErrorHand
      Windows("book1").Activate
    ErrorHand:    MsgBox "Please download JDE Report, Save it as book1, And Run Macro Again", , "Warning!": Exit Sub
    My problem is that the ErrorHand runs even when there is no error. I think its because of it's positioning in the code but i still can't fix it...

    Anyone?
    Last edited by RBI; 10-10-2008 at 11:42 AM. Reason: mark as solved

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