+ Reply to Thread
Results 1 to 4 of 4

Using a MsgBox with On Error Go To Myend

  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2007
    Posts
    29

    Using a MsgBox with On Error Go To Myend

    Hi Everyone

    Is there a way i can have a message box when using the the following Error handling code ?

    Please Login or Register  to view this content.
    The only message will be if the user does not have access to the workbooks the code is searching for in public folders. I would like it to show a message box "Sorry you do not have access to the P drive". I don't understand error handling and this is the easiest one i could find

    Thanks Miff3436

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,441

    Re: Using a MsgBox with On Error Go To Myend

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-16-2011
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Using a MsgBox with On Error Go To Myend

    Hi TMS

    Brilliant ! That works perfectly. Thanks for your time

    miff3436

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,441

    Re: Using a MsgBox with On Error Go To Myend

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need MsgBox in On Error
    By DAK266 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2013, 03:39 PM
  2. error with MsgBox
    By ramserp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2009, 06:39 AM
  3. MsgBox when an Error occurs
    By Vick in forum Excel General
    Replies: 1
    Last Post: 12-21-2005, 04:50 PM
  4. msgbox appear with error msg
    By jrd269 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2005, 12:05 PM
  5. msgbox on error
    By Ciara in forum Excel General
    Replies: 6
    Last Post: 05-26-2005, 05:15 PM

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