+ Reply to Thread
Results 1 to 6 of 6

Paste in the next empty cell starting at a specific cell

  1. #1
    Registered User
    Join Date
    09-30-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    11

    Smile Paste in the next empty cell starting at a specific cell

    I need to copy a line and paste it in the next empty cell. I will be using this macro to copy and paste several lines.

    I have seen a lot of examples pasting it the next cell. But what makes mine different is, I need it to paste it in the next empty cell after a specific cell. Example: I need to paste it to the next empty cell after A31.

    This is what I have so far for the copy and paste.

    Sub weekday()

    Range("A3:E3").Select
    Selection.Copy
    Range("A51").Select
    ActiveSheet.Paste
    End Sub

    I am VERY new at this so simple is better for me.

    Thanks for you help.
    Last edited by Wayne555; 09-30-2010 at 01:53 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Paste in the next empty cell starting at a specific cell

    Wayne555,

    Welcome to the Excel Forum.

    Try either of the following two macros.


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).


    Please Login or Register  to view this content.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    09-30-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Paste in the next empty cell starting at a specific cell

    Thanks so much for the fast response. Both codes work but I must be missing something somewhere. It actually paste starting in A41 not A31. I do not have anything in cells A31 -A39. I do have something in A40. Also when I run the code the second time it copies the line in A41 again instead of the next blank cell.

    Thanks

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Paste in the next empty cell starting at a specific cell

    Wayne555,


    Thanks for the additional information.


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).


    Please Login or Register  to view this content.

    Then run the "weekdayV3" macro.

  5. #5
    Registered User
    Join Date
    09-30-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Paste in the next empty cell starting at a specific cell

    Thanks so much. I have been working on this for 3 days!!!

    Hopefully I will be able to give help on this site one day!

  6. #6
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Paste in the next empty cell starting at a specific cell

    Wayne555,

    You are very welcome.


    Hopefully I will be able to give help on this site one day!

    Practice, practice,.....


    If your post has been solved, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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