+ Reply to Thread
Results 1 to 2 of 2

Macro to Copy cells data and paste on next empty row

Hybrid View

tfaridi Macro to Copy cells data and... 12-14-2012, 04:30 PM
alansidman Re: Macro to Copy cells data... 12-14-2012, 05:35 PM
  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Windsor, CT
    MS-Off Ver
    Excel 2010
    Posts
    7

    Macro to Copy cells data and paste on next empty row

    Hello,

    I need help with a task im trying to accomplish in my excel workbook using macros.

    I want the macro to copy data in cells Q3 to T3 (4 cells), and paste on first empty cell in column W in the sheet. For example, if the first empty cell is W2, then it should paste the cell data on cells W2 to Z2 (4 cells)

    Thank you in advance for the help!!!

    Tariq

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Macro to Copy cells data and paste on next empty row

    try this:
    Sub CopyPaste()
    
        Range("Q3:T3").Select
        Selection.Copy
        Range("W1").Select
        Selection.End(xlDown).Select
        ActiveCell.Offset(1, 0).Select
        ActiveSheet.Paste
    End Sub
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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