×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Copy & Paste Shape Object
2

Copy & Paste Shape Object

Copy & Paste Shape Object

(OP)
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

RE: Copy & Paste Shape Object

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

RE: Copy & Paste Shape Object

For positioning, try the Left and Top properties.

RE: Copy & Paste Shape Object

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources