+ Reply to Thread
Results 1 to 4 of 4

Can I do Calculations in a VBA UserForm or do I have to use a Sheet.

  1. #1
    Registered User
    Join Date
    06-08-2013
    Location
    Columbus, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Can I do Calculations in a VBA UserForm or do I have to use a Sheet.

    I have created a UserForm and have 16 numbers that I have Formated as Currency. I need to total these numbers. Can this be done in the VBA Program or do I need to get the numbers in the Sheet1 do the operation and send it back to the UserForm? If I need to do the calculation in the VBA Program, how do I do it? Otherwise how do I send the numbers to the sheet and back?
    Thanks,

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

    Re: Can I do Calculations in a VBA UserForm or do I have to use a Sheet.

    Can this be done in the VBA Program ? Yes
    To Attach a Workbook:
    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-08-2013
    Location
    Columbus, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Can I do Calculations in a VBA UserForm or do I have to use a Sheet.

    This is the file I am working on. I am a little rusty with the VBA, but it is coming back to me. Any help would be appreciated.
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Can I do Calculations in a VBA UserForm or do I have to use a Sheet.

    Hi Muttrunner

    The Code in the attached demonstrates one approach to doing this on a UserForm. The Code has been provided for only the Opening Drawer but the principle will be the same for the Closing Drawer.

    If you need help with the Closing Drawer let me know.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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