+ Reply to Thread
Results 1 to 9 of 9

Populate data over more than one sheet

  1. #1
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Populate data over more than one sheet

    Hi again,
    Today was the day to get the macro's running and all went well untill I ran the last one and the data did not continue onto the next sheet.
    I had not thought about this as I had moved onto excel 2007 but had to go back to 2003 to be compatible with other software for this project.
    My problem is:
    The final macro to populate the data runs but stops after it gets to the bottom of the sheet at line #65474. This is past where the first two macros populated.
    The other two macros stop input at line #65410 on the first two sheets and line #3394 on the third sheet. This is ok.
    I need the final macro to populate the data down to line #65410 on the first sheet and then continue with the data from line #3 on the next sheet down again to line #65410 and then to line #3 on the final sheet down to line #3394 on the last sheet.
    The workbook is too large to post up so I am trying my best to describe what I want to happen.
    To sumarise, the macro needs to populate the data as below to match the data from the first two macros.
    data 1 First line #3 Last line #65410
    data 2 First line #3 Last line #65410
    data 3 First line #3 Last line #3394

    Please Login or Register  to view this content.
    Can you help again.

    Regards
    Last edited by Butehawk; 05-12-2010 at 05:24 PM. Reason: error in macro

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate data over more than one sheet

    Maybe this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Populate data over more than one sheet

    Hi Jerry,
    This sort of worked but only populated sheet 1 and 2.
    Then gave an error message of "Run time error" "Copy method of range class failed.


    Please Login or Register  to view this content.
    Any ideas?

    Roger
    Last edited by Butehawk; 05-10-2010 at 05:31 PM. Reason: spelling mistake

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Populate data over more than one sheet

    Please Login or Register  to view this content.
    Last edited by snb; 05-10-2010 at 05:55 PM.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate data over more than one sheet

    Click GO ADVANCED and use the paperclip icon to post up your workbook.

  6. #6
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Populate data over more than one sheet

    Thanks SNB
    Your macro hangs up at the (.rows.count,3) stage.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Populate data over more than one sheet

    these sheets should be available :
    IBS Data 1
    IBS Data 2
    IBS Data 3

  8. #8
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Populate data over more than one sheet

    Thanks everyone for their help.
    In the end I had to split the data into three separate sets of 700 rows in different workbooks and then run Jerry's macro on each one. Maybe not the best way but it worked and I have all the data I require.
    Thanks again

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate data over more than one sheet

    Next time, try posting the wb so we can see the same problems you do, solutions may come much faster and accurately that way.

    Thanks!

+ 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