+ Reply to Thread
Results 1 to 3 of 3

boolean function to check if multiple conditions are met

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    12

    boolean function to check if multiple conditions are met

    hi,

    i am trying to write a function that will return true (or false for that matter) if ALL conditions given are met.

    it checks if values entered by a user through a form are valid, for example the claim size cannot be bigger than the order
    from where the claim is originiating.

    anyways, if the function returns true, it will run a sub, that pastes values on a cell, if the function returns false, an msg will be displayed
    and there will be no copy-paste procedure.

    here's what i have.

    Please Login or Register  to view this content.
    here is the macro:

    Please Login or Register  to view this content.
    thank you so much

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: boolean function to check if multiple conditions are met

    Please Login or Register  to view this content.
    Last edited by protonLeah; 08-22-2012 at 10:25 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-27-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: boolean function to check if multiple conditions are met

    @ProtonLeah

    Thank u SO much. Your solution was very elegant. And to think it was driving me nuts. Was about to try with do until
    or do while or somethin' (probably useless haha)

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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