+ Reply to Thread
Results 1 to 3 of 3

Problem with copy and paste code

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Problem with copy and paste code

    I use this code to copy and past to the next available line moving downward. When I first wrote it I did not have anything under where this was posting but now I have had to add a section to my document.
    The problem is that when this code paste the copied material it does not "push" down the new area but rather is "eating" it up. How can I modify this code so that it "pushes" down the other section?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Problem with copy and paste code

    The only thing that comes to my mind is that you have a blank cell in column A, if that is the case, you could change the row count to a more static row.
    For example if column B always has something in it then.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Problem with copy and paste code

    There is a period missing in .Rows.Count

+ 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] Paste restriction code in vba not affecting GUI copy/paste only Ctrl+V
    By DT211569x in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2016, 01:28 PM
  2. [SOLVED] Excel Macro - Copy & Paste (Font) problem & Delete Last Added Rows problem
    By LennartB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2015, 06:58 AM
  3. Replies: 0
    Last Post: 10-29-2013, 09:38 AM
  4. problem with how if insert copy paste working steps of macros when using VBA code
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2013, 04:23 AM
  5. Replies: 3
    Last Post: 12-09-2005, 01:20 PM
  6. [SOLVED] copy and paste code problem
    By bigdaddy3 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-21-2005, 01:05 PM
  7. Replies: 1
    Last Post: 01-04-2005, 06:06 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