Results 1 to 4 of 4

Referencing command buttons within if-then-else

Threaded View

  1. #1
    Registered User
    Join Date
    07-03-2006
    Posts
    74

    Referencing command buttons within if-then-else

    Hi guys & gals,

    I made a userform to calculate the net weight of a package by taking the gross weight and deducting the amount of boxes included in the package. The most boxes possible is 25, so I used 25 command buttons numbered 1 to 25, so users only have to press the desired amount of boxes for the calculation to begin. But that also means I've got 25 subs containing the same formula, and that's a bit much. I'm pretty sure this could be done more efficiently, but I'm not sure what's possible, me not being a VB kind o' guy...

    I included the sheet, so if anybody has a better way of doing this, it would be appreciated!
    Attached Files Attached Files
    Last edited by opopanax666; 08-28-2009 at 04:35 AM.
    "Colors fade, but dumb is forever" - Sally Solomon

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