Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Feb 8, 2002
Messages
10
Location
NL
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
 
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
 
For positioning, try the Left and Top properties.
 
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

Back
Top