+ Reply to Thread
Results 1 to 8 of 8

copying data between keywords to another sheet

  1. #1
    Registered User
    Join Date
    08-22-2017
    Location
    Poland
    MS-Off Ver
    2010
    Posts
    5

    copying data between keywords to another sheet

    Hello,

    I will be grateful for the help in writing a macro that flips selected lines (located between the two words "keys") to a separate sheet. I managed to write a macro, which transfers the fragments that interest me to the same column (separates them with an empty row) - the result is in the "Sheet2" tab.
    I would like the macro to move the fragments that interest me into the following columns ("Desired Output 1" tab).

    Would it also be possible to leave the macro as it is now (flipping fragments into one column), but so that all the data for one company are in a single cell? ("Desired Output 2" tab).

    This is my code:
    Please Login or Register  to view this content.
    Thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: copying data between keywords to another sheet

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-22-2017
    Location
    Poland
    MS-Off Ver
    2010
    Posts
    5

    Re: copying data between keywords to another sheet

    I will add that the use of the following code at the end displays an error regarding different sizes of copy and paste areas (Error 1004).

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-22-2017
    Location
    Poland
    MS-Off Ver
    2010
    Posts
    5

    Re: copying data between keywords to another sheet

    jindon, apologies but it is not working as it is. I must admit that I don't understand the code fully - it is really advanced.
    Last edited by dgr23; 02-06-2018 at 08:57 AM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: copying data between keywords to another sheet

    How is it not working?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-22-2017
    Location
    Poland
    MS-Off Ver
    2010
    Posts
    5

    Re: copying data between keywords to another sheet

    I tried to run it again but on larger dataset and it seems that the second macro is not working at all (Desired Outout 2 worksheet stays the same).

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: copying data between keywords to another sheet

    I don't understand what you mean by "stay the same".

    One thing is
    Please Login or Register  to view this content.
    test2 is working just fine here, so no more help I can offer.

  8. #8
    Registered User
    Join Date
    08-22-2017
    Location
    Poland
    MS-Off Ver
    2010
    Posts
    5

    Re: copying data between keywords to another sheet

    I will take a closed look at your code and try to understand it. Thank you very much!

+ 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. Using VBA to search for keywords in data set and return results in another sheet
    By Rez4ul in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-04-2016, 11:33 PM
  2. [SOLVED] Copying Keywords from Matching List Into New Sheet
    By Excell1677 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-14-2016, 04:25 AM
  3. [SOLVED] VBA looking for multiple keywords and return concatenated keywords, that were found
    By Kpacu007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2014, 06:03 AM
  4. Find multiple keywords in all columns and copying discovered rows into new sheet
    By noxfinitie in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 07-03-2014, 01:14 PM
  5. [SOLVED] Search for keywords and copy rows containing keywords to new sheet
    By lenorsk in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-15-2013, 06:54 AM
  6. [SOLVED] HDI - Return multiple keywords in a text column based on a set of available keywords
    By zneiley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2013, 01:32 PM
  7. Specific keywords copying data to cells
    By Leo Edwards in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2006, 10:20 AM

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