steve case
Well-known Member
- Joined
- Apr 10, 2002
- Messages
- 815
I want to have a range of cells on Sheet1 for the user to click on and have his selections pasted on Sheet2 down Column A in the order he clicked on them.
I have the following Worksheet code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
ActiveCell.Copy
Sheets("Sheet2").Select
Range("A65536").End(xlUp).Select
ActiveCell.Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Sheet1").Select
End Sub
Doesn't work! it hangs up on:
Range("A65536").End(xlUp).Select
So I tried:
Columns("A:A").Select
Selection.Find(What:=Empty, After:=ActiveCell).Select
It didn't like that either.
What am I doing wrong?
Can anybody help?
I'm a noob to this workshet macro stuff!
.
.
.
.
.
I have the following Worksheet code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
ActiveCell.Copy
Sheets("Sheet2").Select
Range("A65536").End(xlUp).Select
ActiveCell.Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Sheet1").Select
End Sub
Doesn't work! it hangs up on:
Range("A65536").End(xlUp).Select
So I tried:
Columns("A:A").Select
Selection.Find(What:=Empty, After:=ActiveCell).Select
It didn't like that either.
What am I doing wrong?
Can anybody help?
I'm a noob to this workshet macro stuff!
.
.
.
.
.