Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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!


--
elrussell
------------------------------------------------------------------------
elrussell's Profile: http://www.excelforum.com/member.php...o&userid=31020
View this thread: http://www.excelforum.com/showthread...hreadid=521437

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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" wrote in
message ...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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).Offse t(1, 0) = _
Worksheets("Sheet1").Range("H24")
End Sub





--


Gary


"elrussell" wrote in
message ...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy content to first empty cell in column


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


--
elrussell
------------------------------------------------------------------------
elrussell's Profile: http://www.excelforum.com/member.php...o&userid=31020
View this thread: http://www.excelforum.com/showthread...hreadid=521437

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy data to the next empty cell in a column suruukko Excel Worksheet Functions 2 July 22nd 06 12:35 PM
Copy from row above if cell is empty in column Jacky D. Excel Discussion (Misc queries) 2 December 20th 05 07:36 PM
Copy a value to the next empty cell in a column Pete Csiszar[_2_] Excel Programming 1 November 7th 04 07:26 AM
VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? Steven Rosenberg Excel Programming 0 August 5th 03 06:10 AM
VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? SROSENYC Excel Programming 1 August 5th 03 04:34 AM


All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"