+ Reply to Thread
Results 1 to 7 of 7

Show MsgBox if mentioned Sheet does not exist

  1. #1
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Exclamation Show MsgBox if mentioned Sheet does not exist

    Hello,

    I am using userform1 to retrieve data from sheet.
    If the sheet name I selected does not exist, it shows error and close.
    So is there any MsgBox that shows " The month you selected does not exist"?

    Please help.

    Charles
    Last edited by ebin charles; 06-20-2011 at 04:41 PM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Show MsgBox if mentioned Sheet does not exist

    Better then suggesting that the user did 'something wrong', you prevent the user doing so presenting him/her only options that do exist.

    eg. all sheets:
    Please Login or Register  to view this content.



  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Show MsgBox if mentioned Sheet does not exist

    Mayhap:
    Please Login or Register  to view this content.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Show MsgBox if mentioned Sheet does not exist

    Quote Originally Posted by snb View Post
    Better then suggesting that the user did 'something wrong', you prevent the user doing so presenting him/her only options that do exist.

    eg. all sheets:
    Please Login or Register  to view this content.
    Thank you

    I take this. This suite for me.
    Than you

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Show MsgBox if mentioned Sheet does not exist

    Never mind me, snb included the form which I did not. Nice one snb

  6. #6
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Show MsgBox if mentioned Sheet does not exist

    Quote Originally Posted by Mordred View Post
    Mayhap:
    Please Login or Register  to view this content.
    Thank you.

    This looks ok, it use to navigate from sheet to sheet which consist of
    10 or 15 sheets.

    Thank you,.
    charles

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Show MsgBox if mentioned Sheet does not exist

    Please do not Quote.

+ 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