+ Reply to Thread
Results 1 to 15 of 15

Copy values from worksheet and paste to starting from 15th row.

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Copy values from worksheet and paste to starting from 15th row.

    I am using this code which found in iternet.No problem when using, working very well.
    It is copying the values from "DATA" sheet and pasting to starting from 2nd row of new opened sheets(Sayfa).
    But, I want to paste the the values to new sheets(Sayfa) 15th row to be opened by macro, from "DATA"sheet.

    How can I change this codes to make 15th row?

    Thanks for any reply and help.

    Regards,
    turist

    Please Login or Register  to view this content.
    Last edited by turist; 12-11-2013 at 04:12 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from worksheet and paste to starting from 15th row.

    untested

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Copy values from worksheet and paste to starting from 15th row.

    Dear AB33,
    Thanks for prompt reply.
    Not exactly worked. Pasted Starting from 15th row, but NOT continued the next rows.(only ONE row pasted)

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from worksheet and paste to starting from 15th row.

    If it is not continuous what is this line is doing?

    Please Login or Register  to view this content.
    You can replace this line

    Please Login or Register  to view this content.
    with

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Copy values from worksheet and paste to starting from 15th row.

    Quote Originally Posted by AB33 View Post
    If it is not continuous what is this line is doing?

    Please Login or Register  to view this content.
    You can replace this line

    Please Login or Register  to view this content.
    with

    Please Login or Register  to view this content.
    Replaced ,but now;
    1st Sayfa starting from 15th row and continue,
    2ndSayfa starting from 22th row and continue,
    3rdSayfa starting from 27th row and continue,

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from worksheet and paste to starting from 15th row.

    I do not know what do you want to do once the code copies in to row15. What is next? If there is no next, remove the second line and just use once.
    Use this line before the loop starts
    sira = 15

  7. #7
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Copy values from worksheet and paste to starting from 15th row.

    Quote Originally Posted by AB33 View Post
    I do not know what do you want to do once the code copies in to row15. What is next? If there is no next, remove the second line and just use once.
    Use this line before the loop starts
    sira = 15
    Thanks a lot for your kind interest and help.
    Could you please see attached file?
    You can see what is wanted.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from worksheet and paste to starting from 15th row.

    Try the attached.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Copy values from worksheet and paste to starting from 15th row.

    Quote Originally Posted by AB33 View Post
    Try the attached.
    Dear AB33,
    Really thanks a lot for your support.I don't want disturb you with my problem.
    New code is running starting from 15th row, it is OK.

    But,now ; DRAFT sheet (which is template for DATA1, DATA2 and DATA3 sheets) format and headings is missing in opened sheets(at DATA1,2,3).
    How can it be replaced ?

    Regards,
    turist

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from worksheet and paste to starting from 15th row.

    I am not sure if I understand the role of sheet Daft.
    I thought you are creating tabs based on column A of sheet Data, copying starting from row 15.
    I removed the code you had as it has to go to function.
    What is the function of sheet Daft? Once I know the answer, I will adjust the code.

  11. #11
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Copy values from worksheet and paste to starting from 15th row.

    Hi turist,
    maybe so
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from worksheet and paste to starting from 15th row.

    I have added the draft format to be copied in to each sheet.
    Attached Files Attached Files
    Last edited by AB33; 12-11-2013 at 06:46 AM.

  13. #13
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Copy values from worksheet and paste to starting from 15th row.

    Quote Originally Posted by nilem View Post
    Hi turist,
    maybe so
    Please Login or Register  to view this content.
    Dear nilem,
    Thanks for reply. OK, worked.
    But I need only B, C, D and J, K columns NOT all columns ( E,F,G,H and I columns should be excluded). Colored in DATA sheet.
    Only this columns should go to DATA1, 2,3..... sheets.

    Can you fix in that way please?
    Regards,
    turist

  14. #14
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from worksheet and paste to starting from 15th row.

    The code you have work- just adjusted few lines. Did you try my last attachment?

  15. #15
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Copy values from worksheet and paste to starting from 15th row.

    Quote Originally Posted by AB33 View Post
    The code you have work- just adjusted few lines. Did you try my last attachment?
    GOam macro is taking DRAFT template, starting from 15th row. OK.

    If macro run once , no problem. But run twice there is an error
    at:
    Please Login or Register  to view this content.
    line.
    Last edited by turist; 12-11-2013 at 07:07 AM.

+ 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. Copy & Paste Values of each worksheet into new workbook
    By aserle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2013, 03:42 PM
  2. [SOLVED] Copy & Paste values on exiting Worksheet
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2013, 12:21 AM
  3. Copy and Paste (Same worksheet) based on cell values
    By muckem333 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2011, 04:43 PM
  4. Macro to Copy and Paste Values to another Worksheet
    By thillis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2010, 03:13 PM
  5. Copy and paste unique values to another worksheet
    By gsrai31 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2009, 11:44 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