VNA Code to Copy and Paste a Shape

MikeG

Well-known Member
Joined
Jul 4, 2004
Messages
816
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
 

Some videos you may like

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

oldbrewer

Board Regular
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?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,232
Messages
5,594,956
Members
413,954
Latest member
mrsandy

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