Closed Thread
Results 1 to 9 of 9

How to make an error come up as a msgbox

  1. #1
    Registered User
    Join Date
    03-23-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    14

    Post How to make an error come up as a msgbox

    Hi
    I am making a seating plan which first you have to select a row A-L then you need to select
    a seat but there are different numbers of seats within the rows so when i book a seat in row A
    and select seat 20 it comes up as an error as it doesn't exist but how do i enable a message box to appear instead
    saying 'sorry this seat does not exist' If you know how to do this please would you tell me.
    Thankyou :D

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to make an error come up as a msgbox

    you could try this

    Please Login or Register  to view this content.
    Last edited by Sean Thomas; 03-23-2013 at 12:39 PM. Reason: spelling mistake
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    03-23-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: How to make an error come up as a msgbox

    Hi i will try this thankyou

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to make an error come up as a msgbox

    what line comes up as the error?

  5. #5
    Registered User
    Join Date
    03-23-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: How to make an error come up as a msgbox

    Thankyou this has worked well although i already have a message box already set up in the same
    command button saying this button is sold if the cell says a 1 and this always appears after the
    new message box is there a way to stop this :D thankyou very much :D

  6. #6
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to make an error come up as a msgbox

    if you can upload your code i will take a look

  7. #7
    Registered User
    Join Date
    03-23-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    14

    Thumbs up Re: How to make an error come up as a msgbox

    Hi it is no problem now you have solved it thankyou
    i have added you a reputation

  8. #8
    Registered User
    Join Date
    03-23-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: How to make an error come up as a msgbox

    Another question please if you dont mind is do you know how to print tickets by collecting data and then adding it to a ticket once you press book
    Thankyou,
    Lee

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to make an error come up as a msgbox

    Lee,

    You're obviously very busy at the moment (10 posts in a few hours), but would you abide by the forum standards and raise a new thread for a new topic instead of just adding a new question in a pre-existing thread. This is not only for the benefit of others who might search the forum many months later, it's also more likely to get you a response.

    I'll close this thread and you should start a new one
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

Closed 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