Formula copy Macro Question

Greg Determann

New Member
Joined
Jan 18, 2005
Messages
20
Is there a way to tell the macro to copy one cell to whatever cell you currently have selected?

In other words, If I am on cell c7 and press my shortcut and then it would copy cell c 15 and paste it there. I would want it to paste cell c15 regardless of what cell I was on.

Thanks for all your help,

Greg
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
Welcome to the Board! How about?:
Code:
    Range("C15").Copy ActiveCell
Hope that helps!
 

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
How about:

<font face=Tahoma><SPAN style="color:#00007F">Sub</SPAN> CopyC15()
    [C15].Copy Selection
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>

Note that there's no error handling, so some formulas could fail.

Hope that helps,

Smitty
 

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
pennysaver said:
Note that there's no error handling, so some formulas could fail.
Smitty

Yeah, what he said! I was trying to find a way to say that, but couldn't get the words out of my mouth.... :oops:
 

immyjimmy

Active Member
Joined
May 27, 2002
Messages
251
How about this?

Sub Copy_C15()

ans = Sheets("Sheet1").Range("C15")
ActiveCell = ans

End Sub


HTH,
Jim
 

Forum statistics

Threads
1,147,623
Messages
5,742,208
Members
423,712
Latest member
edzubur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top