Copy from here to there

F

Francis Hookam

Text in (say) A1

Want to copy into (say) B10

How?

Cells(1, 1). Copy Destination:= Cells(10, 2)

or something like that

Would prefer to keep to Cells(x, y) (rather that absolute references) since
I need to use variables

Cannot see why I cannot make it work!

Francis Hookham
 
J

JE McGimpsey

Francis Hookam said:
Text in (say) A1

Want to copy into (say) B10

How?

Cells(1, 1). Copy Destination:= Cells(10, 2)

or something like that

Would prefer to keep to Cells(x, y) (rather that absolute references) since
I need to use variables

Cannot see why I cannot make it work!

Eliminate the space:

Cells(1, 1).Copy Destination:=Cells(10, 2)


If you just want to copy the value, you can avoid the Copy altogether:

Cells(10, 2).Value = Cells(1, 1).Value
 
F

Francis Hookam

Thanks - just a space and Bingo! I knew I was close but just could not see
it

FH

Francis Hookam said:
Text in (say) A1

Want to copy into (say) B10

How?

Cells(1, 1). Copy Destination:= Cells(10, 2)

or something like that

Would prefer to keep to Cells(x, y) (rather that absolute references) since
I need to use variables

Cannot see why I cannot make it work!

Eliminate the space:

Cells(1, 1).Copy Destination:=Cells(10, 2)


If you just want to copy the value, you can avoid the Copy altogether:

Cells(10, 2).Value = Cells(1, 1).Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top