Copying data to the current cell pointer

seymour

New Member
Joined
Feb 9, 2005
Messages
5
I'm al old 1-2-3 user that's having a hard time figuring out how to use a macro to copy numeric values from a range of cells to the current cellpointer location. Excel XP program help is useless!

Can someone please help? :rolleyes:
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi

Try using the macro recorder to do your action, then review the code produced. This will give you some idea of the syntax required.


Tony
 
Upvote 0
I alraedy did that. What I need is the specific syntax that tells Excel to copy the data to the current cell. Any clue?
 
Upvote 0
Hi

Something like

Range("a1:a5").Copy Destination:=Range(ActiveCell.Address)


Tony
 
Upvote 0
I did this...
Range("J1:K1").Select
Selection.Copy
Range (ActiveCell.Address)
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

I got this...

Compile error: Invalid use of property
 
Upvote 0
If you want to copy the range J1:K1 and paste them where the current cursor resides (assuming that it is not in J1-K1 then use

Range("j1:k1").Copy Destination:=Range(ActiveCell.Address)

Are the numbers in J1-K1 the results of a formula? If so, then you will have to paste the values to the currently selected cell.

Range("j1:k1").Copy
ActiveCell.PasteSpecial xlPasteValues


Tony
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

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