+ Reply to Thread
Results 1 to 4 of 4

Adding a MsgBox dependent on less than a cell?

  1. #1
    Registered User
    Join Date
    08-01-2018
    Location
    Ann Arbor, MI
    MS-Off Ver
    2016
    Posts
    96

    Smile Adding a MsgBox dependent on less than a cell?

    Hello!

    I currently have a Userform that allows users to change the quantity of a part that they are about to ship out.
    I would like to change the code such that if the user changes the quantity to a number larger than what is on stock, a message box appears saying "Quantity too large. See On Stock Qty"
    I have uploaded the example workbook in here, and the Userform code can be seen below.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Adding a MsgBox dependent on less than a cell?

    You could replace your textbox_change event with
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-01-2018
    Location
    Ann Arbor, MI
    MS-Off Ver
    2016
    Posts
    96

    Re: Adding a MsgBox dependent on less than a cell?

    Hi Fluff13,

    That worked, thank you! I just had to switch around the positioning (Pos, 6) instead of (Pos, 2) and also extend my listbox from A6:D11 to A6:G11

    Thanks for the insight! I am rather new to creating userforms. Much appreciated

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Adding a MsgBox dependent on less than a cell?

    Glad to help & thanks for the feedback

+ 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. Replies: 0
    Last Post: 03-26-2015, 12:07 AM
  2. Replies: 1
    Last Post: 12-11-2013, 02:55 AM
  3. Adding dependent of colour cell.
    By santomas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2013, 08:34 AM
  4. Adding msgbox to code
    By sukyb1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2010, 07:09 AM
  5. Adding cell values that are dependent on adjacent cell values
    By globulous in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2009, 10:37 AM
  6. Adding msgbox to stop error
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2009, 10:31 AM
  7. Adding MsgBox to Userform
    By buckchow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2007, 12:45 AM

Tags for this Thread

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