+ Reply to Thread
Results 1 to 3 of 3

Beginner VBA question: IF statement

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Question Beginner VBA question: IF statement

    Hello,
    I am making a macro that randomly checks if three cells are less then or equal to a "total" amount a user inputs.
    Please Login or Register  to view this content.
    The code above works fine but I want to add an IF statement before the 'Do Until' function. For example I am looking for something like
    Please Login or Register  to view this content.
    Thanks!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Beginner VBA question: IF statement

    hi again biddum, i think what you meant in front is IF it's >4, then do the calculation?

    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-29-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Beginner VBA question: IF statement

    benishityo you have done it again! Much Thanks!

+ 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