+ Reply to Thread
Results 1 to 7 of 7

Copying a dataset multiple times - and selecting titles for this dataset

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Central, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    49

    Copying a dataset multiple times - and selecting titles for this dataset

    Hi guys,
    I was wondering if anyone could help me.

    I have a dataset/array (A1:BZ199) that I need copied around 400 times, with a gap of one row between each dataset. I need the title from a different spreadsheet (sheet2) to appear in the cells A1, A201, A401.... ETC (The titles in sheet2 are from a1:a400)


    If anyones wondering. This is what my code looks like so far;
    Please Login or Register  to view this content.
    So this copies the dataset, but doesn't solve the title problem. Is this the way I should do it?

    -thanks in advance.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Copying a dataset multiple times - and selecting titles for this dataset

    Hi

    how about
    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    11-09-2011
    Location
    Central, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Copying a dataset multiple times - and selecting titles for this dataset

    Hi rylo, thanks for the reply - the code I posted was wrong I realized array is meant to be (a1:bz199).
    Your code posts the title in the gap between the two arrays, Is it possible to put the title in the array. (So in the array from a201:bz399 the title would appear in cell a201?)

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Copying a dataset multiple times - and selecting titles for this dataset

    Hi

    Sorry, not following. Can you attach an example workbook showing both a before and after situation. I'm not sure if you want to overwrite some of the existing array before it is copied.

    rylo

  5. #5
    Registered User
    Join Date
    11-09-2011
    Location
    Central, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Copying a dataset multiple times - and selecting titles for this dataset

    I've attached what I mean. (This isn't my actual document as it contains formula which requires an external program in order to see)

    So in this document I have four datasets. I'd like to mimic this but with many more datasets. Cell A1 needs to be changed, but the other cells in this row need to remain constant. (Unless you need to paste the whole row, then I can try and find away to work around it)

    -Oh and the numbers just show what should be data.

    Does this make sense?
    -Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Copying a dataset multiple times - and selecting titles for this dataset

    Hi

    I'm assuming that sheet1 is actually what you want the final output to look like, and that initially it only has data in the range A1:BZ199. If so then try
    Please Login or Register  to view this content.
    rylo

  7. #7
    Registered User
    Join Date
    11-09-2011
    Location
    Central, Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Copying a dataset multiple times - and selecting titles for this dataset

    Brilliant - works perfectly!!!!
    I can't thank you enough - this has saved me hours of copying and pasting!

+ 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