+ Reply to Thread
Results 1 to 2 of 2

Conditions based on 2 variables

  1. #1
    Forum Contributor
    Join Date
    03-03-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    123

    Conditions based on 2 variables

    Hi there again,

    I have on a user form, a dropdown ComboBox1 with preset values, A B and C

    I also have a TextBox1 for values to be entered.

    Now on my command button "Save" I want to have a condition that check that IF ComboBox1 value = B, then Textbox1 nust contain a numerical value, and if not, set the Textbox1 active.

    I have the following, but not working :

    Please Login or Register  to view this content.
    what have I done wrong?

    Thanks for all the help!

    Jakes

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Conditions based on 2 variables

    Hi Jake

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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