+ Reply to Thread
Results 1 to 10 of 10

Copying rows with specific text in cell K2

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Exclamation Copying rows with specific text in cell K2

    Hi!

    I have this 2 sheets, 1 sheet with raw data (Sheet1) and another sheet is called Downtime. I'm trying to alter the code below but I got an error. This code should act as what Filter function would do, yet I'm not allowed to do Filter in this sheet hence I'm trying to build this code.

    The code should do:
    1. Detect specified text by user in Downtime sheet, in cell K2 (a drop-down list)
    2. From the text selected, code will go through column A in Sheet1 to find the text
    3. The code will then have to copy rows of column A which has the text, until column G
    4. The data will then be pasted to the same column but starting from row 2

    Please Login or Register  to view this content.
    Can someone help me to alter my code? Thanks in advance!

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copying rows with specific text in cell K2

    Please upload a sample file....Exact setup of actual file this time so that it will make it easier for us to assist.
    Last edited by sintek; 01-11-2018 at 02:30 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Copying rows with specific text in cell K2

    Hi, all

    Here's an example of the file. The raw data or Sheet1 will have data up to 1000++ rows.
    Attached Files Attached Files

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copying rows with specific text in cell K2

    yet I'm not allowed to do Filter
    Why not, with such big chunks of data filter is best option...
    pasted to the same column but starting from row 2
    Pasted to which sheet...always overwriting row 2 or below old copied info

  5. #5
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Copying rows with specific text in cell K2

    Quote Originally Posted by sintek View Post
    Pasted to which sheet...always overwriting row 2 or below old copied info
    Always overwriting row2, meaning every time the option from the dropdown list is selected, and the code runs, the page will change its data.

    P/s: I could not do filter as it will affect my other program, which is to copy paste table from Excel to PowerPoint slides.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copying rows with specific text in cell K2

    Please Login or Register  to view this content.
    copy paste table from Excel to PowerPoint slides.
    How will filter effect this?

  7. #7
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Copying rows with specific text in cell K2

    Quote Originally Posted by sintek View Post
    How will filter effect this?
    The PPT generator can copy cell range and paste it to PPT slides, in a way that user has to fill in the cell range in form of A1:G9, for example.

    By the way, is this correct?

    Please Login or Register  to view this content.
    I applied the code to my actual file and clicked the run button but no changes
    Last edited by ell_; 01-11-2018 at 03:24 AM.

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copying rows with specific text in cell K2

    By the way, is this correct?
    Works on upload unless your actual is not same as per other threads!!
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Copying rows with specific text in cell K2

    Found the real culprit. Thanks a lot, Sintek. You helped me a lot today

  10. #10
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copying rows with specific text in cell K2

    Pleasure....

+ 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] Copying Rows containing a specific Cell text to a new sheet
    By St3ff3ns in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2017, 07:04 AM
  2. Replies: 3
    Last Post: 08-06-2014, 07:57 AM
  3. Copying Rows Based on Specific Cell Match
    By ywendyh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2013, 07:35 PM
  4. Deleting rows if specific cell is blank or have specific text
    By JoaoFerreira1985 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2013, 01:18 PM
  5. [SOLVED] Macro to search rows for specific text within a cell then cut cell to specified location
    By jonathanpotts90 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-25-2012, 06:18 AM
  6. Copying text in cell into seperate specific columns
    By marc thomas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2012, 12:40 PM
  7. Macro for copying specific text from a cell
    By mvel_sky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2010, 02:47 AM

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