+ Reply to Thread
Results 1 to 9 of 9

Text Search/Filter Button

  1. #1
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Text Search/Filter Button

    I am trying to setup a macro where I can type a word into a textbox, click a button, and filter a table based on the value of the text box. The code I am using was made available on the SreadSheetGuru.

    Please Login or Register  to view this content.
    The problem I have is that I receive an error: "runtime error 80070057 - the item with the specified name wasn't found." And the VBA code highlights "mySearch = sht.Shapes("UserSearch").TextFrame.Characters.Text 'Control Form"
    Attached Files Attached Files
    Last edited by nadiavkhan; 02-13-2018 at 10:28 AM. Reason: Moved from Excel General

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Text Search/Filter Button

    Welcome to the forum!

    Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Re: Text Search/Filter Button

    Sorry. This is my first post

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Text Search/Filter Button

    Thank you.

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,279

    Re: Text Search/Filter Button

    try this delete all coding in your workbook
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Re: Text Search/Filter Button

    Thank you. But when I try to run that code, the debug highlights "a$ = txt.Text"

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Text Search/Filter Button

    Quote Originally Posted by nadiavkhan View Post
    I am trying to setup a macro....
    I am sorry to ding you twice in your first thread. The first thing that new members should do is take the time to review our rules. There aren't many, and they are all important.

    Your post does not comply with Rule 8 of our Forum Rules: Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you must provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (most other forums have the same rule).
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Registered User
    Join Date
    02-13-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Re: Text Search/Filter Button

    Sorry. How do I delete this post then?

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Text Search/Filter Button

    You do not need to delete the post. Just provide a link to the other forum(s) where you have asked this (same) question.
    Ben Van Johnson

+ 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. Filter Search Button
    By Lonniepoet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2015, 05:50 AM
  2. Text Box value to search/filter a table
    By padawanexcellwarrior in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2015, 10:59 PM
  3. Filter data with a search button
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-20-2015, 12:14 PM
  4. Replies: 2
    Last Post: 10-07-2013, 04:57 AM
  5. Button to search for a File based off of button Text
    By ExcelnExcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 10:43 PM
  6. [SOLVED] Macro/s to create Search Bar to filter to search terms entered activated by Command Button
    By JasonRay in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2013, 03:44 PM
  7. [SOLVED] search button if text box = certain text perform a task
    By randall78 in forum Excel General
    Replies: 0
    Last Post: 07-01-2012, 04:02 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