Consulting

Results 1 to 2 of 2

Thread: Fusing chart and shapes before copying

  1. #1

    Fusing chart and shapes before copying

    Hi,

    I am trying to copy a charts with shapes drawns on it. In previous version of Excel that was easy but I am having problems with Excel 2007. Basically a chart is generated. Then I draw a few lines on it with the mouse. I then want to be able to copy this altogether as one picture. In Excel 2007 I am not even allowed to shift and select all of them to group them. Is this an issue because I am trying to group a chart with a shape. I tried that code

    [VBA]ActiveSheet.Shapes.SelectAll
    Selection.ShapeRange.Group[/VBA]

    But it doesn't do a thing. Everything else in my project works to expectation (I'm sure it can be nicer code but that'll do until I get better)

    Thanks for any help with this.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    That code works fine for me.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •