+ Reply to Thread
Results 1 to 4 of 4

Pasting into a new line

  1. #1
    Registered User
    Join Date
    11-01-2004
    Posts
    67

    Pasting into a new line

    Quite a while ago, the good people of these forums helped me out with a vba problem. The code I derived out of it is pasted below, but I appear to have screwed it up, as it doesn't select the next available row, it just pastes it over the top of the existing data.

    Can anybody help me and tell me what I've done wrong?

    Many thanks in advance,

    Chris
    Please Login or Register  to view this content.
    Chris Please ensure you read private message re - VBA code wrapping
    Last edited by mudraker; 04-02-2007 at 10:08 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    This line of code does not find the next vacant cell - it finds the last used cell in column A

    Please Login or Register  to view this content.
    You need to add 1 to it
    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    I'm not sure but may be column 'A' (where macro get the first free row) has no data while other columns have data in the row when there are no data in column 'A'.

    If the problem is this you can try to replace the code:
    Please Login or Register  to view this content.
    with this:
    Please Login or Register  to view this content.
    I hope it can help you.

    Regards,
    Antonio

  4. #4
    Registered User
    Join Date
    11-01-2004
    Posts
    67

    Talking

    Dear both,

    Thank you so much for helping me - I've managed to solve the problem!

    I picked a column that I know will always have data in it. That fixed the problem.

    Thanks again,

    Chris

    P.S. Mudraker - PM read digested and understood - won't happen again

+ 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