Consulting

Results 1 to 9 of 9

Thread: Solved: Copy data into next empty cell

  1. #1

    Solved: Copy data into next empty cell

    (Using vba with excel 2007)

    hey.

    Sorry to post two threads in such quick succession.... but well I really need help if you can spare it....
    I’ve been making this quiz which I’ve mostly finished. I’ve got all my radio buttons outputting the results to a selection of cells. Now what I want to do is make it so when I press a “save” command button the information in the results cells are automatically stored into the next empty cells in an assigned column in another workbook, thus making a database in the other workbook. I wonder could anybody help me out with this?
    Cheers,
    Joe.

  2. #2
    VBAX Regular
    Joined
    Nov 2008
    Posts
    44
    Location
    Does this link help? Comment #3 looks promising.

    http://www.xtremevbtalk.com/showthread.php?t=35702


    Duluter

  3. #3
    yeh good find i'll give it a try

  4. #4
    works a treat :P cheers for that!

    now i got the cell slected, i gotta entre the data.... i'll think i can do this on my own, but i won't close the thread just yet.....

  5. #5
    VBAX Regular
    Joined
    Nov 2008
    Posts
    44
    Location
    This is officially the first time I've ever helped anyone on a programming message board! It's quite a joyful feeling.


    Duluter

  6. #6
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    duluter, be careful or you will be addicted like the rest of us!

    ThePigeon, go ahead and mark this thread solved as your initial query was solved. You can post as many questions as you need don't worry, thats what we are here for!
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  7. #7
    done it.... cheers for the help!

    regards,

    Joe.

  8. #8
    :P cheers guys.

  9. #9
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    The solutions suggested are generally checking from the top. This can cause errors if the data is not "solid". It is safer working from the bottom up.
    [vba]
    Sub NextEmpty()
    Dim Rng As Range
    Set Rng = Sheets(2).Cells(Rows.Count, 1).End(xlUp).Offset(1)
    ActiveCell.Copy Rng
    End Sub

    [/vba]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •