+ Reply to Thread
Results 1 to 5 of 5

copy content to first empty cell in column

  1. #1
    Registered User
    Join Date
    01-31-2006
    Posts
    17

    copy content to first empty cell in column

    I am guesssing that this is a problem in search of a programming solution. Two cases:
    [1] I have textual content in cell H24 that I want to copy to the first empty cell in column C.
    [2] I would like to insert some system variables such as today's date, time, etc.

    I would prefer to do all of this when a given form (buildRubric) is initialized. Any suggestions will be greatly appreciated.

    Thanks in advance!

  2. #2
    Jim F
    Guest

    RE: copy content to first empty cell in column

    Sub CopyPaste()
    Range("H24").Select
    Selection.Copy
    Range("C65000").End(xlUp).Offset(1, 0).Select
    ActiveSheet.Paste
    End Sub

    "elrussell" wrote:

    >
    > I am guesssing that this is a problem in search of a programming
    > solution. Two cases:
    > [1] I have textual content in cell H24 that I want to copy to the first
    > empty cell in column C.
    > [2] I would like to insert some system variables such as today's date,
    > time, etc.
    >
    > I would prefer to do all of this when a given form (buildRubric) is
    > initialized. Any suggestions will be greatly appreciated.
    >
    > Thanks in advance!
    >
    >
    > --
    > elrussell
    > ------------------------------------------------------------------------
    > elrussell's Profile: http://www.excelforum.com/member.php...o&userid=31020
    > View this thread: http://www.excelforum.com/showthread...hreadid=521437
    >
    >


  3. #3
    Gary Keramidas
    Guest

    Re: copy content to first empty cell in column

    you could actually do it with one line of code

    1) i am assuming your data starts in c2. this will put the value of h24 into the
    first empty cell in column c after row 2

    sub copy_val
    Range("C2").End(xlDown).Offset(1, 0) = Range("H24")
    end sub

    2) not sure what you want where

    --


    Gary


    "elrussell" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I am guesssing that this is a problem in search of a programming
    > solution. Two cases:
    > [1] I have textual content in cell H24 that I want to copy to the first
    > empty cell in column C.
    > [2] I would like to insert some system variables such as today's date,
    > time, etc.
    >
    > I would prefer to do all of this when a given form (buildRubric) is
    > initialized. Any suggestions will be greatly appreciated.
    >
    > Thanks in advance!
    >
    >
    > --
    > elrussell
    > ------------------------------------------------------------------------
    > elrussell's Profile:
    > http://www.excelforum.com/member.php...o&userid=31020
    > View this thread: http://www.excelforum.com/showthread...hreadid=521437
    >




  4. #4
    Gary Keramidas
    Guest

    Re: copy content to first empty cell in column

    sorry, missed your last requirement
    this would go on the userform's activate code page
    and you should qualify the ranges with the sheet names

    Public Sub buildRubric_Activate()
    Worksheets("Sheet1").Range("C2").End(xlDown).Offset(1, 0) = _
    Worksheets("Sheet1").Range("H24")
    End Sub





    --


    Gary


    "elrussell" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I am guesssing that this is a problem in search of a programming
    > solution. Two cases:
    > [1] I have textual content in cell H24 that I want to copy to the first
    > empty cell in column C.
    > [2] I would like to insert some system variables such as today's date,
    > time, etc.
    >
    > I would prefer to do all of this when a given form (buildRubric) is
    > initialized. Any suggestions will be greatly appreciated.
    >
    > Thanks in advance!
    >
    >
    > --
    > elrussell
    > ------------------------------------------------------------------------
    > elrussell's Profile:
    > http://www.excelforum.com/member.php...o&userid=31020
    > View this thread: http://www.excelforum.com/showthread...hreadid=521437
    >




  5. #5
    Registered User
    Join Date
    01-31-2006
    Posts
    17

    Re: copy content to first empty cell in column

    Thank you very much - this will help a great deal.

+ 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