+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Activex textbox search giving error 1004

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Activex textbox search giving error 1004

    Hi,

    I have a spreadsheet where I would like to search through Column B in order to display the rows which have the information i typed in.

    For example, I have a column with , "1357, 1113, 9288, 1209, 2139"
    and I type in "13" in the activex textbox, It will only display the rows with
    1357
    1113
    2139

    All is working well with this code, but the problem is that it searches through column A instead of B,

    Please Login or Register  to view this content.
    Now, If it change the Field to 2, would that allow me to search through column B instead?
    I get the error:
    Run-time error '1004':
    AutoFilter method of Range class failed, and the highlighted line is
    Please Login or Register  to view this content.
    Please help me out if you can! It's my first time using VB =)
    Last edited by nostic; 02-07-2012 at 11:46 AM.

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Activex textbox search giving error 1004

    That syntax looks correct to me. You may want to put
    Please Login or Register  to view this content.
    before it to clear existing filters.
    Good luck.

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Activex textbox search giving error 1004

    thank you for a quick response, works perfectly now =)

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Activex textbox search giving error 1004

    My pleasure.

    Please do not forget to mark the thread Solved.

+ 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