Consulting

Results 1 to 6 of 6

Thread: Some help with userforms

  1. #1

    Some help with userforms

    Hello,

    I have a database in Excel. I'd like to know if I can use a Userform to run calculations on that database.

    There would be several list boxes where the user would choose certain parameters (name, location, moth year, etc), and based on those choices it would run calculations and display the result(s).

    If this is beyond a Userforms abilities, I'm open to an suggestions. If it can be done, I need a nudge in the right direction, if at all possible.

    Thank you,
    Don

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    The answer is yes, vey easily, but as to a nudge, what do you knpow, what do you not know.

    Can you create a userform?
    Can you add controls (listboxes et al) in design mode?
    Can you populate those controls from the data?
    etc. etc.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    BTW, although it can be done with forms, Excel is infinitely better at it, it has lots of tools that forms don't have custom formatting, conditional formatting, data validation, pivot tables, etc., which makes life much simpler.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    xld,
    Thanks forresponding. I can build the form and populate the list boxes and such. My problem would be, for example, if i had a "calculate" button, to have it run the code to take the different input fromthe list/text boxes, and calculate the results.

    I've tried working with a pivot table, but my data is is huge--currently 2850 rows by 10 columns.

    I appreciate any advice,

    Thanks,
    Don

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Toolman55
    xld,
    Thanks forresponding. I can build the form and populate the list boxes and such. My problem would be, for example, if i had a "calculate" button, to have it run the code to take the different input fromthe list/text boxes, and calculate the results.

    I've tried working with a pivot table, but my data is is huge--currently 2850 rows by 10 columns.

    I appreciate any advice,

    Thanks,
    Don
    Where does a pivot table come into it, pivot tables are worksheet facilities not userforms.

    Calculating is possible but again it is a bit of a large brief, more spcific definition would help.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    I'm sorry I must be having an off day. I thought that was what you were referring to in your second post(third of this thread), and I was responding to that.

    I will have to work up a scaled down version of the file and re-post with more specifics.

    Thanks,
    Don

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •