paste object in a position which value is store in a cell of a worksheet

iaudio1233

Board Regular
Joined
Mar 7, 2014
Messages
158
My case should be very simple but not successful to find a solution
Sub placeobject()
'

Selection.Copy
Range("A7").Select
ActiveSheet.Paste

End Sub

I know A7 is the place I paste the object.

Ask :
I want to paste the object to a position which value is store in cell N13 of worksheet1
please kindly help.
Thanks





T
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi. The code below should work. It assumes a few things:
1. Worksheet1 is called "Sheet1" - if it has a different name, you will need to adjust the code.
2. The destination cell in N13 uses standard notation: eg, "D3", "F6"
3. You are selecting the target object on the sheet when you run the code.

VBA Code:
Sub placeobject()
Dim Destination As String
Destination = Sheets("Sheet1").Range("N13").Value
Selection.Copy
Range(Destination).Select
ActiveSheet.Paste
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,772
Messages
6,126,801
Members
449,337
Latest member
BBV123

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