button macro help

G

greg7468

Hello all,
I have a command button by where I want to say transfer the values i
A1 to the active cell in the sheet. Could someone please help me wit
the macro.
Thank you in advance
 
C

Chip Pearson

Greg,

Try something like

ActiveCell.Value = Range("A1").Value


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
G

Gord Dibben

greg

To transfer the value use

Sub Move_Value()
Range("A1").Cut Destination:=ActiveCell
End Sub

To copy the value use

Sub Copy_Value()
ActiveCell.Value = Range("A1").Value
End Sub

Gord Dibben Excel MVP
 
G

greg7468

thank you both for your replies, you really do save people many hour
trying in vain to find the correct solution
 

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