Macro Excel 97

A

Abay

I am pretty much a newbie at Excel and would like to create a Macro for the
following: (know how to create and edit macros etc.)

Take the value from a cell in worksheet A and paste it into the current cell
(where the mouse pointer is when the macro is executed) in worksheet B .. am
at a loss at how to tell the macro to paste into the current cell ......
apologies if this is a really stupid question ..

Any help would be much appreciated.
..

Abay
 
A

Alan

Try

Sheet1.Range("A1").Copy
Sheet2.Select
ActiveCell.PasteSpecial xlPasteAll

Regards,
Alan.
 
G

Gord Dibben

Abay

Without the selecting part..........

Sub copy()
Sheets("Sheet1").Range("A1").copy _
Destination:=ActiveCell
End Sub

OR if want value only........

Sub copy2()
ActiveCell.Value = Sheets("Sheet1").Range("A1").Value
End Sub


Gord Dibben Excel MVP
 

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