+ Reply to Thread
Results 1 to 1 of 1

Calcuation based on checkbox value

  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    India
    MS-Off Ver
    3
    Posts
    24

    Calcuation based on checkbox value

    Hi Everyone,

    I have a problem. I have a vb form with 36 checkboxes. Each checkbox caption is a reference to excel data heading (headers). In each heading there is numbers
    associated with that heading. I want to calculate the numbers based on the checkboxes that a user will select.

    Example.
    Heading
    Equipment Finishing (painting, scratches, damage, etc)
    Equipment Alignment (doors, removable panels/covers, locks, section-to section, etc)
    Equipment / Device Labels/Nameplates and Component Layout
    Torque Marking
    Component / Device Inspection (damage to parts, missing screws, etc)
    .....................
    .....................
    ......................
    .......................

    Each Heading have separate numbers

    chkbox1 is Equipment Finishing (painting, scratches, damage, etc) 0.5
    chkbox2 is Equipment Alignment (doors, removable panels/covers, locks, section-to section, etc) 0.25
    chkbox3 is Equipment / Device Labels/Nameplates and Component Layout 0.7
    chkbox4 is Component / Device Inspection (damage to parts, missing screws, etc) 0.10


    If the user selects chkbox2 and chkbox4 then I should get a Msgbox as "TOTAL = 0.35"
    Please share the code how to do the same depending on checkbox selection. It will be appreciated if you share the whole code as I am new to VB.
    Note : checkbox is reference to only and only heading and not with the values 0.7,0.25,0.5 . Depending on checkbox selection it will calculate the total. I only know that I can use array. But How ?
    Last edited by MOHAMMESALMAN; 08-10-2015 at 10:50 AM.

+ 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. Time calcuation
    By Kshari in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-20-2014, 07:49 PM
  2. need help making excel for 4 sum calcuation in 1 short
    By samj221 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-02-2012, 10:26 AM
  3. Excel 2007 : Spread of Hours Calcuation
    By Lfrat in forum Excel General
    Replies: 3
    Last Post: 06-08-2012, 08:42 AM
  4. Match/Index Calcuation Speed
    By Rochy81 in forum Excel General
    Replies: 1
    Last Post: 10-01-2008, 04:19 PM
  5. [SOLVED] holding a value after first calcuation
    By spence in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2006, 08:00 PM
  6. [SOLVED] How do I keep Excel in manual calcuation?
    By iumike2004 in forum Excel General
    Replies: 2
    Last Post: 02-28-2006, 05:40 PM
  7. Performing calcuation based off IF formula
    By rob7278 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2005, 12:51 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