+ Reply to Thread
Results 1 to 4 of 4

Macro pop up search box

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    97

    Macro pop up search box

    Hi, i have a sheet with a large many rows of data. I would like to have a macro button to open a pop up msgbox so I can enter the data i am looking for and have matching cell selected.
    Its basically a find function run from a macro but as soon as the search detail is entered the cell will be highlighted.
    I have searched for this as I am sure it must be commonly used but unable to find a simple solution.

    All help appreciated.

  2. #2
    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: Macro pop up search box

    "as soon as the search detail is entered the cell will be highlighted" You have to have an additional user action to indicate the search detail is ready to search, like a Search button.

    How is this different than hitting CTRL-f?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    UK, Newcastle
    MS-Off Ver
    Office 365
    Posts
    97

    Re: Macro pop up search box

    Quote Originally Posted by 6StringJazzer View Post
    "as soon as the search detail is entered the cell will be highlighted" You have to have an additional user action to indicate the search detail is ready to search, like a Search button.

    How is this different than hitting CTRL-f?
    Once I had the basic macro I would develop it further to perhaps hi-light the data of interest within the found row.

  4. #4
    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: Macro pop up search box

    To look for a partial match, change xlWhole to xlPart.

    To look in formulas and values instead of just values, change xlValues to xlFormulas.
    Please Login or Register  to view this content.

+ 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. Search and copy macro with search criteria
    By richlilrich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2016, 11:40 AM
  2. VBA Macro to Search a Website's Search-Box
    By unit285 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2015, 02:35 PM
  3. Creating search box in cell - Currently using Macro 'Range to search' *HELP*
    By jacko058 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2014, 05:24 AM
  4. [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
  5. Linking Search Results from an existing search macro
    By mougiasm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2013, 04:15 PM
  6. [SOLVED] Macro to search a string, then search above for another one and copy the rows between them
    By DarKDjinni in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-20-2012, 09:36 PM
  7. [SOLVED] Macro ignores search code when 1 of the 2 search parameters is not found
    By BrodyNoochie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 05:21 PM

Tags for this Thread

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