Results 1 to 26 of 26

For Loop Combo Boxes with If Statement

Threaded View

bssm For Loop Combo Boxes with If... 02-21-2015, 07:47 PM
stnkynts Re: For Loop Combo Boxes with... 02-21-2015, 08:23 PM
bssm Re: For Loop Combo Boxes with... 02-21-2015, 08:51 PM
Deamo Re: For Loop Combo Boxes with... 02-21-2015, 08:32 PM
bssm Re: For Loop Combo Boxes with... 02-21-2015, 08:37 PM
Deamo Re: For Loop Combo Boxes with... 02-21-2015, 08:45 PM
Norie Re: For Loop Combo Boxes with... 02-21-2015, 09:37 PM
bssm Re: For Loop Combo Boxes with... 02-21-2015, 10:29 PM
Deamo Re: For Loop Combo Boxes with... 02-21-2015, 09:45 PM
bssm Re: For Loop Combo Boxes with... 02-21-2015, 09:45 PM
Deamo Re: For Loop Combo Boxes with... 02-21-2015, 09:55 PM
Norie Re: For Loop Combo Boxes with... 02-22-2015, 12:22 AM
Deamo Re: For Loop Combo Boxes with... 02-22-2015, 05:45 AM
bssm Re: For Loop Combo Boxes with... 02-22-2015, 10:36 AM
Norie Re: For Loop Combo Boxes with... 02-22-2015, 11:09 AM
bssm Re: For Loop Combo Boxes with... 02-22-2015, 06:39 PM
bssm Re: For Loop Combo Boxes with... 02-24-2015, 08:14 PM
bssm Re: For Loop Combo Boxes with... 03-01-2015, 11:30 AM
Deamo Re: For Loop Combo Boxes with... 02-23-2015, 06:23 PM
Norie Re: For Loop Combo Boxes with... 02-23-2015, 06:34 PM
Norie Re: For Loop Combo Boxes with... 02-24-2015, 08:39 PM
bssm Re: For Loop Combo Boxes with... 02-24-2015, 09:39 PM
bssm Re: For Loop Combo Boxes with... 02-24-2015, 09:02 PM
Norie Re: For Loop Combo Boxes with... 02-24-2015, 09:07 PM
Norie Re: For Loop Combo Boxes with... 02-24-2015, 10:04 PM
bssm Re: For Loop Combo Boxes with... 02-26-2015, 07:02 PM
  1. #8
    Registered User
    Join Date
    02-15-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Re: For Loop Combo Boxes with If Statement

    Thanks very much, perfect

    Expanding on the Sub CheckCombo, would there be a formula to add all the "mia" boxes" values and all the "moa" boxes, currently I have:
    (tmi is another textbox in the userform for sum of all the mia combobox values, tmo is for all moa values)

        
    
    tmi.Value = Val(mia1.Value) + Val(mia2.Value) + Val(mia3.Value) + Val(mia4.Value) + Val(mia5.Value) + Val(mia6.Value) + Val(mia7.Value) + Val(mia8.Value) + Val(mia9.Value) + Val(mia10.Value) + Val(mia11.Value) + Val(mia12.Value) + Val(mia13.Value) + Val(mia14.Value) + Val(mia15.Value) + Val(mia16.Value) + Val(mia17.Value) + Val(mia18.Value)
    
    tmi.Value = Format$(tmi.Value, "0.00")
    
    tmo.Value = Val(moa1.Value) + Val(moa2.Value) + Val(moa3.Value) + Val(moa4.Value) + Val(moa5.Value) + Val(moa6.Value) + Val(moa7.Value) + Val(moa8.Value) + Val(moa9.Value) + Val(moa10.Value) + Val(moa11.Value) + Val(moa12.Value) + Val(moa13.Value) + Val(moa14.Value) + Val(moa15.Value) + Val(moa16.Value) + Val(moa17.Value) + Val(moa18.Value)
    
    tmo.Value = Format$(tmo.Value, "0.00")
    I am thinking there is probably something much shorter
    Last edited by bssm; 02-21-2015 at 10:36 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to loop through cells and populate combo boxes using VBA and Excel?
    By chowee21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2014, 10:44 AM
  2. [SOLVED] Help with code for userform text boxes, combo boxes and excel
    By innerise in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 09:07 AM
  3. [SOLVED] cascading combo boxes to run loop
    By union in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2013, 02:29 PM
  4. Loop through ActiveX Combo boxes
    By Commercial_Coder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2012, 11:07 AM
  5. Loop Worksheet Combo Boxes
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-25-2011, 10:25 AM

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