+ Reply to Thread
Results 1 to 3 of 3

Search a word in entire workbook and copy paste the row containing that word to new sheet

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    1

    Search a word in entire workbook and copy paste the row containing that word to new sheet

    I am a beginner in VBA. Please help me to write a code to make the following workable:
    1. On a button click, it will prompt the user to enter a word to be searched in the entire sheets of the workbook
    2. As it finds the word it should copy paste the entire row containing that word to a the sheet containing that button
    3. If it is getting that word multiple times, it can copy paste all the searched rows.

    Thanks in advance.

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

    Re: Search a word in entire workbook and copy paste the row containing that word to new sh

    Can this help?

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Search a word in entire workbook and copy paste the row containing that word to new sh

    Or this..

    Uses FindNext so it doesn't need to loop through so many values..

    Add a Command Button to sheet1 and insert this code..

    Note: This code assumes your first sheets name is "Sheet1".. change that in the code if needed.

    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] HELP PLEASE : How to make macros to search a word in the entire sheet & c/p the value
    By kinabuch0902 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-26-2013, 11:36 PM
  2. [SOLVED] I need to search for a word on multiple sheets and copy the entire row to a new sheet
    By jkm750 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2013, 12:13 AM
  3. VBA Search workbook for user value, copy/paste entire row to last sheet for matching
    By jasonkrispy21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2012, 03:42 PM
  4. How to search for a word in a column and have entire row opaque once word is found
    By copleyr in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-04-2009, 07:11 PM
  5. [SOLVED] How to Search for word in the Entire Workbook
    By lbbss in forum Excel General
    Replies: 4
    Last Post: 07-04-2005, 04:05 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