Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   Copying Cells form one worksheet to another (https://www.askmehelpdesk.com/showthread.php?t=63363)

  • Feb 16, 2007, 03:27 AM
    Luc
    Copying Cells form one worksheet to another
    Hi,

    I have a worksheet that at the end of everyday a button is pushed and the data form a range of cells is copied into another worksheet..

    The only thing is I can only get it to copy into cerntain cells on the other worksheet, meaning that the previous nights data is over-written.

    How can I make a macro so that when the button is pressed again the data is copied to line below the previous nights data?

    Kind regards

    Luc
  • Feb 16, 2007, 06:12 AM
    ScottGem
    The Code would look like this:

    Range("A21").Select
    Selection.End(xlDown).Select
    SendKeys("{Down}")

    A21 is the top of the range you want to copy to. The next 2 commands will move to the first emply cell in that range.

  • All times are GMT -7. The time now is 05:23 AM.