+ Reply to Thread
Results 1 to 2 of 2

vba code to show rowsource and then filter to show certain returns

  1. #1
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    vba code to show rowsource and then filter to show certain returns

    I am trying to return any results in a combobox that contain the word David in a named cell range (ID), my code is:

    Select Case Me.ComboBox1.Value
    Case "David Tournay": Me.ComboBox2.RowSource = "ID"
    If RowSource = "David Tournay" Then show "David Tournay"
    End Select
    End Sub

    I'm clearly missing some code towards the end of the third line but I don't know what. Please help!

    Thanks

    Z

  2. #2
    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: vba code to show rowsource and then filter to show certain returns

    Hi zak

    Please use Code Tags around any Code you post.

    You have several Threads that seem to revolve around this same issue.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and, if appropriate, an "After" worksheet that demonstrates what you wish the output to be.

    To Attach a File:

    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 "Add Files"... button to locate your file for uploading.
    6. This will open a new window File Upload...Click "Select Files"
    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 Files" button and wait until the file has uploaded.
    10. Click the "Done" Button.
    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)

Similar Threads

  1. after run advanced filter, only shows headline or show al without filter
    By reedzhou in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2014, 07:42 AM
  2. [SOLVED] how to add counter in msgbox to show remain times the message will show vba code
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-25-2013, 06:46 AM
  3. [SOLVED] Adapt code to show filter
    By Jack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2006, 07:25 AM
  4. FILTER: show/don't show selection with tickboxes
    By ancharwashere in forum Excel General
    Replies: 2
    Last Post: 10-11-2005, 05:05 PM
  5. [SOLVED] how to remove hard returns, which show as little boxes
    By eames.librarian in forum Excel General
    Replies: 3
    Last Post: 08-04-2005, 03:05 PM

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