+ Reply to Thread
Results 1 to 5 of 5

Avoid search with wild cars **

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Avoid search with wild cars **

    Hi I have below code which was made brilliant by Holger (HaHoBe). It works fine. The thing is its used so the user seach in hidden sheets, so they are not able to see all the sheet, because is confidential. They only see what they search for.
    But I found out of if I put wild cars in for example the customer number 8 digits and 8 ********. It nearly show all the items of course.
    Is it possible in below code to input, so its impossible to use wild cars* for the search?

    Please see in the code below thanks

    Sincerely Abjac

    Please Login or Register  to view this content.
    Last edited by abjac; 09-02-2014 at 05:24 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Avoid search with wild cars **

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Avoid search with wild cars **

    Please Login or Register  to view this content.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Avoid search with wild cars **

    Hi, abjac,

    like stated before I would not work with InüputBoxes but have UserForms to make the choices: a listbox to choose which worksheet and 2 boxes filled with the IBANS and customer numbers for that very sheet. That would narrow down the range as only items are searched on sheets that exist and for IBANS and customer numbers avalibale for that sheet as well (an additional plus: as you have two boxes for the areas you could use the Autofilter to copy over the data instead of copying whole rows via Find ).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Avoid search with wild cars **

    HI Thanks for the help I tested them both and urs lancer works but only if I put input in with only * if I mix it , it will give a result. Yours nathansav is working perfect. What amount of * I put in, it don't give any result and that's how it have to work.
    '
    Thanks allot its working

    Thanks also to you HaHoBe. The changes made it ok so its working fine. I think you ur properly right. But its working now so for me that's great.

    Have nice evening

    sincerely
    Abjac

+ 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. Wild Card Character search using Excel VBA
    By s.anurag1786 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2013, 11:18 PM
  2. Wild Card search with space ??
    By oldtech in forum Excel General
    Replies: 2
    Last Post: 10-14-2008, 10:13 PM
  3. Possible? Trying to do a wild card search...
    By andyd2k in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2006, 01:13 PM
  4. sumproduct with a search and wild card
    By Scorpvin in forum Excel General
    Replies: 1
    Last Post: 06-14-2006, 11:50 AM
  5. Wild Card Search
    By roy.okinawa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2006, 06:45 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