+ Reply to Thread
Results 1 to 3 of 3

Macro to hide a row if column D has some text or number which i am searching for

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Macro to hide a row if column D has some text or number which i am searching for

    hi,

    I have a workbook in which I have 9 columns. I want a macro which should give a search box and I will type a search string/number. It should search for that search keyword in column D and then hide that particular row completely.
    Also, I need a button (if possible) on the same search box which can unhide all the rows.

    Please help.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to hide a row if column D has some text or number which i am searching for

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to hide a row if column D has some text or number which i am searching for

    Maybe:

    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. [SOLVED] Macro to hide rows where Column C contains any text or value
    By ExcelMikeMcC in forum Excel General
    Replies: 7
    Last Post: 03-13-2015, 11:44 AM
  2. Searching number in text field and adding value to it
    By virupaksh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2014, 10:40 AM
  3. Replies: 19
    Last Post: 04-10-2013, 08:30 AM
  4. Searching for a number within a text string
    By pauldaddyadams in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-19-2012, 12:12 PM
  5. Searching for text and adding a number value?
    By gsmonk in forum Excel General
    Replies: 2
    Last Post: 11-25-2007, 01:51 AM

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