+ Reply to Thread
Results 1 to 8 of 8

Macro to copy rows if detects a specfic key word

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Macro to copy rows if detects a specfic key word

    Hi,

    I'm after a macro that would copy all the rows that has "OPEN POT" in column G to from cell range D25:S39, and then pasted to cell range D10:S19 withinin the same sheet.

    Thanks in advance!
    Last edited by Misbah211; 08-22-2012 at 10:31 AM.

  2. #2
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro to copy rows if detects a specfic key word

    Hi again, I attempted at manipulating a similar macro but I just can't get it to work. I'm a novice with coding so I can't troubleshoot the problem. Hope someone can help out.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro to copy rows if detects a specfic key word within same sheet

    Bump, can anyone help?

  4. #4
    Registered User
    Join Date
    06-20-2012
    Location
    England
    MS-Off Ver
    Office 365 Excel
    Posts
    62

    Re: Macro to copy rows if detects a specfic key word

    Im pretty new to vb also but just something I noticed, you have used rCell but not defined what it is exactly however you have Dim'd it as a Range

    Not too sure if this helps.

  5. #5
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro to copy rows if detects a specfic key word

    Hey, emm I'm new to vba as well, a complete novice if I'm honest. What it is that I tried manipulating an existing macro I found on Google, that was used to move rows from other sheets. But I'm trying to move rows within the same sheet depending on a specific criteria.

  6. #6
    Registered User
    Join Date
    06-20-2012
    Location
    England
    MS-Off Ver
    Office 365 Excel
    Posts
    62

    Re: Macro to copy rows if detects a specfic key word

    Im not on a computer right now. Ill try later

  7. #7
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro to copy rows if detects a specfic key word

    Cheers mate, heres the spreadsheet if it helps

    Test Spreadsheet.xlsm

  8. #8
    Registered User
    Join Date
    06-20-2012
    Location
    England
    MS-Off Ver
    Office 365 Excel
    Posts
    62

    Re: Macro to copy rows if detects a specfic key word

    Misbah,

    You have left the password on the vb.
    Last edited by Steven8294; 08-22-2012 at 10:44 AM.

+ 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