View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
redeagle redeagle is offline
external usenet poster
 
Posts: 12
Default Macro's Pasting into continous rows

Hi Euan-

There are better ways, but a quick and easy way would be to use a Static
variable.

Sub CopyCell()

Static r As Integer
Range("A1").Select
Selection.Copy
Cells(r + 2, 2).Select
ActiveSheet.Paste
r = r + 1

End Sub

"Euan Ritchie" wrote:

I'm trying to make a Macro that once i click the button it will copy from A1
and paste into B2. the next time i click the Button i still want it to copy
from A1 but paste in B3, then B4..B5 so on and so forth!
is this possible?