#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default data entry

I am trying to write a macro that will copy data from, lets say cell c3 and
paste it to cell c6. Each day I will be adding new data to cell c3 and
coping to the next blank cell c7, c8, c9, c10 etc.

The macro is more complicated than this and I can do everything I need to
except to add the data to the next blank cell.

Thanks for the help

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,646
Default data entry

Hi Larry,

Try this Change event sub:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$3" Then
Application.EnableEvents = False
lastrow = Columns("C").Find(What:="*", _
After:=Range("C1"), _
LookAt:=xlPart, _
LookIn:=xlValues, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
Range("C" & lastrow + 1).Value = Target.Value
Application.EnableEvents = True
End If
End Sub

Regards,
Stefi


€˛Larry Fish€¯ ezt Ć*rta:

I am trying to write a macro that will copy data from, lets say cell c3 and
paste it to cell c6. Each day I will be adding new data to cell c3 and
coping to the next blank cell c7, c8, c9, c10 etc.

The macro is more complicated than this and I can do everything I need to
except to add the data to the next blank cell.

Thanks for the help


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default data entry

Stefi wrote:
Hi Larry,

Try this Change event sub:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$3" Then
Application.EnableEvents = False
lastrow = Columns("C").Find(What:="*", _
After:=Range("C1"), _
LookAt:=xlPart, _
LookIn:=xlValues, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
Range("C" & lastrow + 1).Value = Target.Value
Application.EnableEvents = True
End If
End Sub

Regards,
Stefi

€˛Larry Fish€¯ ezt Ć*rta:

I am trying to write a macro that will copy data from, lets say cell c3 and
paste it to cell c6. Each day I will be adding new data to cell c3 and

[quoted text clipped - 4 lines]

Thanks for the help


Thanks Stefi

Will try this tonight. Know I why I wanted to stick with Lotus 123. All I
wound need was {down}.

Thanks for your time and Help.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default data entry

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/25/2006 by
'
' Keyboard Shortcut: Ctrl+a
'
Range("C1:F1").Select
Selection.Copy
Range("A1").Select
Selection.End(xlDown).Select
Range("C65536").Select
Selection.End(xlUp).Select
' Range("C7")+0.1.Select
ActiveSheet.Paste
End Sub
This macro workd fine but I need c7 to change to c8 after pasting data. Or
moving down one cell after executing the "select.End(aIUP).Select
Larry Fish wrote:
Hi Larry,

[quoted text clipped - 25 lines]

Thanks for the help


Thanks Stefi

Will try this tonight. Know I why I wanted to stick with Lotus 123. All I
wound need was {down}.

Thanks for your time and Help.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200609/1

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,646
Default data entry

Sub Macro1()
Range("C1:F1").Select
Selection.Copy
Selection.End(xlDown).Select
Range("C" & ActiveCell.Row + 1).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

Regards,
Stefi


€˛Larry Fish via OfficeKB.com€¯ ezt Ć*rta:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/25/2006 by
'
' Keyboard Shortcut: Ctrl+a
'
Range("C1:F1").Select
Selection.Copy
Range("A1").Select
Selection.End(xlDown).Select
Range("C65536").Select
Selection.End(xlUp).Select
' Range("C7")+0.1.Select
ActiveSheet.Paste
End Sub
This macro workd fine but I need c7 to change to c8 after pasting data. Or
moving down one cell after executing the "select.End(aIUP).Select
Larry Fish wrote:
Hi Larry,

[quoted text clipped - 25 lines]

Thanks for the help


Thanks Stefi

Will try this tonight. Know I why I wanted to stick with Lotus 123. All I
wound need was {down}.

Thanks for your time and Help.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200609/1




  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default data entry

Thanks Stefi this works great.
Larry

Stefi wrote:
Sub Macro1()
Range("C1:F1").Select
Selection.Copy
Selection.End(xlDown).Select
Range("C" & ActiveCell.Row + 1).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

Regards,
Stefi

€˛Larry Fish via OfficeKB.com€¯ ezt Ć*rta:

Sub Macro1()
'

[quoted text clipped - 26 lines]

Thanks for your time and Help.


--
Message posted via http://www.officekb.com

  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,646
Default data entry

You are welcome! Thanks for the feedback!
Stefi


€˛Larry Fish via OfficeKB.com€¯ ezt Ć*rta:

Thanks Stefi this works great.
Larry

Stefi wrote:
Sub Macro1()
Range("C1:F1").Select
Selection.Copy
Selection.End(xlDown).Select
Range("C" & ActiveCell.Row + 1).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

Regards,
Stefi

€˛Larry Fish via OfficeKB.com€¯ ezt Ć*rta:

Sub Macro1()
'

[quoted text clipped - 26 lines]

Thanks for your time and Help.


--
Message posted via http://www.officekb.com


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
prevent data entry into cell? keif Excel Worksheet Functions 3 April 3rd 06 08:37 PM
Data Entry Using Pulldown Ben010 Excel Worksheet Functions 0 March 27th 06 09:39 PM
Simplified Data Entry Spellbound Excel Discussion (Misc queries) 0 March 24th 06 12:18 PM
Data entry using pull down Ben010 Excel Discussion (Misc queries) 0 March 22nd 06 12:55 PM
data entry form Excel Aart Dijkzeul Excel Discussion (Misc queries) 1 September 25th 05 01:57 PM


All times are GMT +1. The time now is 08:37 PM.

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"