VNA Code to Copy and Paste a Shape

MikeG

Well-known Member
Joined
Jul 4, 2004
Messages
845
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a shape called "Company Logo". Could any one give me the code to copy the shape from sheet 1 and paste to sheet 2?


(I tried macro record but had trouble when I pasted it into another macro).

Thanks,

MikeG
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
If you do the the whole job with macro record on, and it works, and you stop the macro, the macro will do it again perfectly.
 

JLGWhiz

Well-known Member
Joined
Feb 7, 2012
Messages
12,979
Office Version
  1. 2013
Platform
  1. Windows
I have a shape called "Company Logo". Could any one give me the code to copy the shape from sheet 1 and paste to sheet 2?


(I tried macro record but had trouble when I pasted it into another macro).

Thanks,

MikeG

You can try something like the following;
First, select the shape.
Code:
Sub copySh()
Selection.Copy
Sheets(2).Paste
With Selection
 .Top = 100 'Adjust to desire
 .Left = 100 'Adjust to desire
End with
End Sub
 
Last edited:

sergioMabres

Well-known Member
Joined
Feb 24, 2013
Messages
946
Like this
Code:
    ActiveSheet.Shapes.Range(Array("Company Logo")).Select
    Selection.Copy
    Sheets(2).Select
    Range("A1").Select
    ActiveSheet.Paste
This is what you need?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,156
Messages
5,835,707
Members
430,381
Latest member
tntcute

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