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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the Board! How about?:
Code:
    Range("C15").Copy ActiveCell
Hope that helps!
 
Upvote 0
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
 
Upvote 0
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:
 
Upvote 0
How about this?

Sub Copy_C15()

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

End Sub


HTH,
Jim
 
Upvote 0

Forum statistics

Threads
1,213,556
Messages
6,114,284
Members
448,562
Latest member
Flashbond

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
Back
Top