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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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.
 
Upvote 0
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:
Upvote 0
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?
 
Upvote 0

Forum statistics

Threads
1,214,746
Messages
6,121,292
Members
449,021
Latest member
bob_messenger

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