+ Reply to Thread
Results 1 to 17 of 17

combobox in a user form

  1. #1
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    204

    Smile combobox in a user form

    I've written a workbook that enables my workmates to enter sample information easily (workbook attached). What i need help on i cant get the combobox 's on the user form to pick up the related info in worksheet named "data" and insert it into the relavant coloumn in tab named "Results". I can get it to work without using combobox's and just typing the info into a textbox but i wanted to use combobox's.

    Another thing i wanted to do was pick invidual results and send them the "Report" for printing. how would i do that.

    Thanks in advance for your Help
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Here it is buddy

    I have managed to get the comboboxes to populate buddy,

    however i am unsure whatyou mean in terms of the report being printed individually can you clarify?
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    204
    thanks.....

    The information in each row (1 row per sample) corresponds to the info on the REPORT. what i wanted to do was when needed sellect a particular row and then transfer to the report ready for printing or emailing

  4. #4
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Leave it with me buddy

    I should be able to do that budd. leave it with me

  5. #5
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    204
    to further my knowledge could you include how you did it........

  6. #6
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Sure

    Yeah ok, just look in the Code editor and i will put notes in there

  7. #7
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    204
    your a legend..... i'm starting a parttime VB course in september in a local college. it's intresting using VB to make tasks easier.

  8. #8
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    True

    Yeah i love using it and i pretty much do it for my job these days.

    whats the course called and where are you taking it (might do it myself)

  9. #9
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    204
    its at pontypridd college its called - City & Guilds Introduction to Software Development

    http://www.pontypridd.ac.uk/

  10. #10
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Eureka

    Here we go dude,

    I added a second button where you select the ref number to be printed and then a box for the comments on the bottom.

    it all works fine for m so i hope its ok for you.

    Cheers
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    204
    thanks your a legend

  12. #12
    Forum Contributor
    Join Date
    01-28-2007
    MS-Off Ver
    2019
    Posts
    204
    can you help with this ?

    what i want to do is have a button (which i've got) that writes the report and then prints and a button that writes the report and then attach's the report to an email ?

    How easy is this to do ?

    I've attached the modded version of the file you helped with
    Attached Files Attached Files

  13. #13
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    It is really inefficient coding to Select ranges, sheets etc. Also, using a loop should be avoided as it will generally slow code. Here's 3 more efficient ays to populate your comboboxes

    Please Login or Register  to view this content.
    VBA macros can be extremely useful, but don't overlook non VBA methods. Your report can be filled without VBA just by using VLOOKUP. Give each Data entry a unique record number then get the information to populate the form by using VLOOKUP with that reference number.
    Last edited by royUK; 08-31-2007 at 03:14 AM.
    Hope that helps.

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

    Free DataBaseForm example

  14. #14
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Talking I agree

    Yeah my coding isn't the best but i have to teach myself so at least it works hey roy lol!!

    only one way to get better i guess and thats to learn.

    Roy? you got any e-books that might help me?

  15. #15
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Oh Yeah

    God you know it's annoying that sometimes you just can't see the simplest way of doing something, but now you mention it that would have been stupidly easy to do!!!

  16. #16
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Dave we all have to learn this way, it's just great that the Internet helps like this. As for ebooks, I am halfway through one on excel databases.

  17. #17
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Thumbs up Kewl

    Yeah i totally agree,

    i would be f'd if this forum didn't exist, but to be honset it's great when you learn a new function or piece of code and your mind starts wondering oround how you can use it all over lol.

    as for the e-book, keep up the good work roy!

    cheers

+ 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