+ Reply to Thread
Results 1 to 4 of 4

Help with combo boxes and macros

  1. #1
    Registered User
    Join Date
    07-31-2007
    Posts
    3

    Help with combo boxes and macros

    I'm working on a project for work and would really appreciate some help.

    I have a combo box with 87 combinations. When a user selects something, I need the macro to run in another worksheet and show only the data for that combination.

    Currently, it will run in the same sheet as my combo box and, seemingly, for all the data.

    I'm pretty new with macros, so would really appreciate if someone would let me know how to get back on track.

    Thank you!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Bit more detail please.

    Are you using the combobox to drive a filter and all the data is on the second sheet? Or are you trying to copy data from the first sheet and have it appear on the second sheet?

    Where is the data, and what range does it cover?

    Perhaps a sample file would help explain things.

    rylo

  3. #3
    Registered User
    Join Date
    07-31-2007
    Posts
    3
    rylo -- Thank you so much for your reply.

    I figured out how to have the macro run on the second sheet (I just started the recording on the sheet with the combo boxes then clicked over to the other sheet -- easy enough).

    Yes, I'm trying to use the combobox to drive a filter with all the data being on the second sheet. This is where my problem is coming in. When I scroll down to a random combination in my box, it activates the macro and, on the second sheet, the formatting for all the data is there, not just for the combination I need.

    I'm going to PM you, as well.

  4. #4
    Registered User
    Join Date
    07-31-2007
    Posts
    3
    Clearly I was having a "brainfart" on the first part of my problem as I FINALLY realized the reason my macro was starting in the same sheet as my combo box was that I wasn't telling the macro to go from that sheet to the sheet with the data.

    However, I still can't figure out how to code the macro where, when it's ran, it will only pull the data for the combination selected. It's not even accepting the autofilter I'm putting into the column that's the same as what's in my combo boxes.

    Below is my code. I'll be eternally grateful for any help. I really want to get this project done and, at the end of the day, I will have learned something too. I'll be happy to e-mail the file to anyone who wouldn't mind lending a hand.

    Please Login or Register  to view this content.
    Last edited by Bacchus815; 08-01-2007 at 04:58 PM.

+ 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