Ask Experts Questions for FREE Help !
Ask
    Luc's Avatar
    Luc Posts: 1, Reputation: 1
    New Member
     
    #1

    Feb 16, 2007, 03:27 AM
    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
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Feb 16, 2007, 06:12 AM
    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.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

How to export database of chart prepared in powerpoint to excel worksheet [ 1 Answers ]

I have prepared one chart in powerpoint using excel worksheet. The worksheet was updated in powerpoint and no of slides of powerpoint were prepared. Now I want to import these charts in excel worksheet. I need help to perform this function.

Clicking differnet cells and it selecting all cells [ 2 Answers ]

Just wondered if anyone knew what I did to get ms excel to select all cells from A1 to what ever cell I clicked on. Thought it was sticky keys but it was turned off. Clicked left mouse button and it moved cells then when I clicked other cells it started using that as a new ref point and selecting...

Excel: Linking from one worksheet to another [ 8 Answers ]

I'd like to link from a cell in one worksheet to a LINE in another. If that doesn't make sense, I've got a member list of people with address, phone, etc. For folk that have not renewed this year, I want to have a separate worksheet that documents my contact efforts... so to link from the...

Gridlines for MS Excel Worksheet [ 1 Answers ]

Hi: I have installed MS Excel 2000 and MS Excel 2003 on my two emachines computers with Windows XP. Both versions of Excel are perfect on one computer, but they are not on the other one. On my second computer, Excel worksheets of both versions never have gridlines. The sheets or tables look...

Microsoft Excel 2003 Worksheet Problem [ 1 Answers ]

Hi: Would you please help me solve the problem I am having! This is the problem: I have installed MS Office 2003 on my two home computers. Everything is OK on one computer, but MS Excel 2003 is a problem on another computer. When I open a new workbook, I always get a blank worksheet that has...


View more questions Search