Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy & Paste Shape Object 2

Status
Not open for further replies.

Conex

Structural
Feb 8, 2002
10
Hi,

Can anyone please help me and put me right!
I am trying to select a group of shapes in Excel, copy, paste then position them using a macro. My feable attempt below selects but does not copy and paste! I haven't got as far as positioning yet.

Set myDocument = Workbooks("K-RHS-RHS.xls").Worksheets("Brace Elastic Modulus Table")

with myDocument
With .Shapes.Range("Elements").Select
.Selection.Copy
End With
.Paste
end with

Thanks
 
Replies continue below

Recommended for you

Shouldn't it look like :

Set myDocument = Workbooks("K-RHS-RHS.xls").Worksheets("Brace Elastic Modulus Table")

with myDocument
With Shapes.Range("Elements").Select
Selection.Copy
End With
Selection.Paste
end with

Just a thought, i'm no Excel guru

Cyril Guichard
Mechanical Engineer
 
Thanks FrenchCAD, I also found it wasn't working because I was trying to select a group of items which didn't exist!

Thanks MintJulep, it now positions correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor