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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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