+ Reply to Thread
Results 1 to 9 of 9

Code to paste in specific range

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Code to paste in specific range

    Hi.
    This is my code
    Please Login or Register  to view this content.
    How do i make this part of the code refer to range A4:
    Please Login or Register  to view this content.
    I tried doing this:
    Please Login or Register  to view this content.
    but it didn't work.
    Thanks.

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

    Re: Code to paste in specific range

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Code to paste in specific range

    Thanks.
    The problem now is that A4 is the address for all the pasting of data so now the code keeps pasting over A4 and doesn't paste underneath it

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

    Re: Code to paste in specific range

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Code to paste in specific range

    Thanks again.
    What is NR?
    And the code is acting funny, it goes to row 300 start pasting going upwards then skips 100 rows??

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

    Re: Code to paste in specific range

    I have commented the line

    ' If rCell Mod 2 = 1 Then

    and used instead this line
    If Application.IsOdd(rCell) Then
    Please remove this line and use the commented row.
    NR is just a long variable.

  7. #7
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Code to paste in specific range

    I'm afraid it's doing the same thing as before

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

    Re: Code to paste in specific range

    I have not change anything to your code, except adding a single line

    Please Login or Register  to view this content.
    Or use one as suggested by Mike

    Please Login or Register  to view this content.
    Last edited by AB33; 07-04-2014 at 12:02 PM.

  9. #9
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Code to paste in specific range

    It worked like a charm!
    Thanks for not giving up

+ 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. [SOLVED] Copy and paste range as values to specific sheet/range
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2014, 09:48 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. Copy and paste specific range to date specific range in alternate sheet
    By alanalmarza in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 08:29 AM
  4. How do I make my macro insert/paste code in specific column range?
    By Rabbitstew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2012, 04:33 PM
  5. [SOLVED] VBA code to Paste into a specific text file
    By dcozzi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2006, 04:10 PM

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