+ Reply to Thread
Results 1 to 10 of 10

Search Cut and Paste to New Sheet

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Search Cut and Paste to New Sheet

    Hi,

    I'm looking for a Macro that searches through column J for the word EXPIRED, that it needs to cut the entire row and paste it to another sheet. Can some one please help me with this.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search Cut and Paste to New Sheet

    Sure. Should it be done whenever Expired is entered or chosen from a dropdown in the column or on the click of a button?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Search Cut and Paste to New Sheet

    From a click button and when it paste to other sheet it needs to go into the next available row. Thanks

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search Cut and Paste to New Sheet

    What is the data range that you have? Does your data start from row2, headers being in row1?

  5. #5
    Registered User
    Join Date
    08-29-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Search Cut and Paste to New Sheet

    It would start in row 4

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search Cut and Paste to New Sheet

    What is the data range that you have?

    Headers in row 3?

  7. #7
    Registered User
    Join Date
    08-29-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Search Cut and Paste to New Sheet

    from row 4 to 250

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search Cut and Paste to New Sheet

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  9. #9
    Registered User
    Join Date
    08-29-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Search Cut and Paste to New Sheet

    Thank you works like a charm

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search Cut and Paste to New Sheet

    Am glad it worked.

    Please mark your thread as solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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