+ Reply to Thread
Results 1 to 8 of 8

Easy Help - Cut/Paste Macro

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Easy Help - Cut/Paste Macro

    Hey all,

    I am looking for a macro that will search an entire sheet for the letters "EDS" - however there will be things before and after it so it will need wildcards on both ends - If it finds EDS in a cell then I need the entire row to be cut and pasted into Sheet 2. And so on, there will be several rows with EDS so I need them to all end up on sheet 2.

    Thanks for the help - I appreciate it
    Last edited by TShelt; 06-04-2012 at 10:18 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Easy Help - Cut/Paste Macro

    Is there a specific column that the EDS in located or is it scattered throughout the workbook?

    Thanks!

  3. #3
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Easy Help - Cut/Paste Macro

    It will be in Column A

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

    Re: Easy Help - Cut/Paste Macro

    Do you have a sample file that you can upload?
    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]

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,632

    Re: Easy Help - Cut/Paste Macro

    Why not filter col A on all cells containing your string and cut/paste them to another sheet ?

  6. #6
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Easy Help - Cut/Paste Macro

    File is attached, - in this example Row 1 2 3 and 6 would be moved to sheet 2 and row 4 and 5 would stay in sheet 1
    Attached Files Attached Files

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

    Re: Easy Help - Cut/Paste Macro

    There are many ways of doing this like autofilter, looping, etc.
    Try this code
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Easy Help - Cut/Paste Macro

    Perfect, I can tweak from there - thanks again for the help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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