+ Reply to Thread
Results 1 to 8 of 8

VBA code to repeatedly copy and paste selection

  1. #1
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    VBA code to repeatedly copy and paste selection

    i have this code:

    Please Login or Register  to view this content.
    To copy rows and paste them directly below. However, i would like this process to repeat itself to row whatever.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VBA code to repeatedly copy and paste selection

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA code to repeatedly copy and paste selection

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: VBA code to repeatedly copy and paste selection

    Getting an error with this line now:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: VBA code to repeatedly copy and paste selection

    Thank you John H. Davis that code works

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA code to repeatedly copy and paste selection

    You're welcome. Glad to help out and thanks for the feedback. Please comply with the Forum Rules and mark this thread as solved.

    http://www.excelforum.com/forum-rule...rum-rules.html

  7. #7
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: VBA code to repeatedly copy and paste selection

    I notice one issue with the code. It does a great job of coping everything including formulas but starts to act funny when i start putting in condition formatting.
    If i have conditional formation on a cell in row 2, i get a debug warning and excel freezes up. Ive only noticed this with conditional formatting and nothing else.

  8. #8
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: VBA code to repeatedly copy and paste selection

    Solved it.
    Needed this line of code:
    Please Login or Register  to view this content.

+ 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. Debug vbs code to copy and paste info from Sh1 to Sh2 triggered by selection
    By FlyFisherman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-19-2013, 10:26 PM
  2. Use VBA code to copy and paste a specific selection
    By Joe Walsh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-08-2013, 05:11 PM
  3. VBA Code to copy and paste a row depending on selection made in a combobox
    By ssu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2013, 05:37 AM
  4. [SOLVED] Copy and paste set of rows repeatedly at click of button
    By RoxanaN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2013, 02:30 AM
  5. Error on code to copy and paste user selection.
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2011, 10:52 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