+ Reply to Thread
Results 1 to 15 of 15

multipage userforms

  1. #1
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    multipage userforms

    Hi,

    I'm creating a userform with multipage controls, (I've attached a couple of images). I'd like to be able to manually enter a customers details in the search frame and if the customer exists, I'd like the form to populate the frame to the right with the customer contact details and the frame named "Related jobs" on the second page "job details"

    Is it possible to display data related to the customer record and which control would I use for it? Would there have to be separate text fields for it to populate or would it draw the spreadsheet into the userform? I'd like to use a userform for this, though I know it would be possible to do it using formulae in a separate worksheet...

    Finally, I'd also like to add in a quote calculator to the userform as a third page, though this would be more easily done on a worksheet rather than a userform I would have thought. Still, i'd like to know if this is possible?

    Any help would be much appreciated!

    master userform - customers.png
    master userform - jobs.png

    Thanks


    Mick

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: multipage userforms

    Hello,

    Could you please attach an example of you workbook? It's a little easier to build the code when you know where it's referencing.

    Thanks,

    RVASQUEZ

  3. #3
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: multipage userforms

    Thanks for looking into this!

    Unfortunately the file is 8.7MB so it won't upload. I've created a basic workbook with just the column headings.

    Can you work with this?

    Thanks


    Mick
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: multipage userforms

    I can work with this.

    You have the following on your userform:
    Customer Name
    Customer ID
    Customer Details
    New customer details
    Now Job Details
    Related jobs

    If you could please tell me for each of the categories on the form what you would like to pull into those spaces from the workbook that would help. Customer Name and ID are obvious but the other are a little vague considering the amount of columns you have.

    Thanks!

  5. #5
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: multipage userforms

    Hi rvasquez,

    I've been working on the design for the userforms, I think they might help with your question...

    Customer details v2.jpg
    Job details v2.jpg
    Quote calculator.jpg

    The idea was that the user could enter either the customer name or the customer ID into the form and it would retrieve the relevant customer details i.e address details - 1st line of address, city/town, post code as well as contact phone numbers and email address.
    In the attached images I've also included the related jobs for existing customer frame where I'd like any previous jobs relating to this particular customer to be displayed.

    Then, if there is no existing customer in the database then the user can fill in the New Customer details section with the required details.

    For the job details page, I'd like the user to be able to insert the details of any new job that is requested.

    The quote calculator then generates a quote based upon the details given in the new collection details frame, this would be a function of the collection type (A), the distance of the collection address from a specified address (B), the type and number of heavy items collected (Hv), the type and number of hazardous items collected (Hz) and then whether any discount is to be applied (D) the equation would be = (A+B+Hv+Hz)*D.

    Thanks


    Mick
    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: multipage userforms

    ignore the attached image, it's a previous version of the customer details v2 image linked to in the text.... don't know what happened there!

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: multipage userforms

    Why pictures? You've attached a workbook with headers - no data, no userform, no help!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  8. #8
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: multipage userforms

    Hey mickisme,

    I can work with the screen shots you've given me but it worries me that you said previously that you are developing the format of the form. So I'm asking that you please leave the forms as the last screen shot you gave me that way I can give you a code. If you wish to keep altering the form please decide on a final format and then do as royUK has asked and attach a spreadsheet with the Userform and the columns in it. For now I'll continue working with what you have given me.

    Thanks!

  9. #9
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: multipage userforms

    Hi RoyUK, rvasquez,

    Apologies, I had tried to upload the whole workbook with all the VB projects and data but at 8.7MB it wouldn't upload. Can you suggest a way to share it?

    rvasquez, I'll leave it as it is now, I really appreciate you having a look at it for me!

    Thanks


    Mick

  10. #10
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: multipage userforms

    Ok, I've exported the form file and imported it into a new work which also contains the raw data for the workbook, I think for some reason the other macros in the workbook were badly written and bumping up the file size.

    Thanks


    Mick
    Attached Files Attached Files

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: multipage userforms

    In future try zipping the file or in extreme circumstances a file share like Dropbox

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: multipage userforms

    There's still nothing in the file. Are you saving as a *.xlsm format?

  13. #13
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: multipage userforms

    Hi RoyUK,

    Ok, not sure why that happened! I had tried zipping the file but only managed to compress it to 6MB ish. I've created a copy in my public dropbox folder here, I hope it works now!

    Thanks


    Mick

  14. #14
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: multipage userforms

    Hello mickisme,

    Sorry it took me so long been a little busy with work. Attached you will your updated worksheet. I have set the userform to show when you select the first worksheet and also when the workbook opens. Remember you need to enable content and macros in order for the workbook to work correctly. Also, I wasn't quite sure how to do the quote calculator so although there is a tab for this in the userform it is not set to perform any calculations.

    I have placed comments within the code that explain exactly what the code does.

    Please let me know if you have any questions.

    Thanks!

    RVASQUEZ
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    02-23-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: multipage userforms

    Wow, that is amazing. Thank you rvasquez, I really appreciate your help with this.

+ 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