delete, copy, paste within limits

  • I have a table of data which has been imported to a sheet and need to delete some random contents, then copy a title down until the next title. For example, as attached. Column A will have a formula of B&" "&C and has to be this way due to vlookups in another table. The headers (bold e.g. 'London', 'Leeds', 'Manchester') have random sub contents (not in bold) that needs to be deleted, and then the header needs to be copied down underneath until the next header. Problem is that these headers are not fixed in a row and can move up and down dependant on the data in the download. They will always be in column B, and the 'field' will always be in column C. Thanks

  • Re: delete, copy, paste within limits


    OK, found one suitable


    I've found that the problem usually lies inbetween the keyboard and the chair

  • Re: delete, copy, paste within limits


    freddie0,

    Does the macro you posted fill your needs?


    If not:

    Quote

    The headers (bold e.g. 'London', 'Leeds',
    'Manchester')



    Is there always one blank row between the last field in group 'London" to the title 'Leeds'?

    Is there always one blank row between the last field in group 'Leeds" to the title 'Manchester'?


    Have a great day,
    Stan

  • Re: delete, copy, paste within limits


    All VBA code posted in the forum must be wrapped in code tags, which you omitted, including single-line code snippets.
    I've added the tags for you this time only. Be sure to use them in future posts.


    [COLOR="navy"]How to use code tags[/COLOR]


    [noparse]

    Code
    [/noparse]
    [COLOR="navy"]your code goes between these tags[/COLOR]
    [noparse]

    [/noparse]

  • Re: delete, copy, paste within limits


    Quote from Stanley D. Grom;558427

    freddie0, Does the macro you posted fill your needs? If not: Is there always one blank row between the last field in group 'London" to the title 'Leeds'? Is there always one blank row between the last field in group 'Leeds" to the title 'Manchester'? Have a great day,Stan

    Hi StanThe method posted suits fine thanks. It is a set of numbers (results) from a csv paste horizontally with no gaps, just consecutive numbers.The code I used allows the transpose to vertical and gives the option of how many rows to insertThanks

    I've found that the problem usually lies inbetween the keyboard and the chair

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!