+ Reply to Thread
Results 1 to 7 of 7

Select multiple charts to be copied

  1. #1
    Registered User
    Join Date
    04-28-2004
    Posts
    49

    Select multiple charts to be copied

    I am trying to select 2 charts on my worksheet simultaneously so I can copy them into word via vba. Manually its no problem, select 2nd chart while pressing the ctrl button, but how do you do this programmatically via vba.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481
    how about this...

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-28-2004
    Posts
    49
    I tried your code with a minor change (chart number). But nothing gets selected. The changes I made are below.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481
    what version of excel do you have?

  5. #5
    Registered User
    Join Date
    04-28-2004
    Posts
    49
    2007, I should have mentioned that initially.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481
    Can you work with this?

    It groups the chartobjects and the copies before ungrouping.
    And when you paste you will need to ungroup as well Edit: Charts pasted in ungrouped

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-28-2004
    Posts
    49
    Perfect, that works great! Thanks Andy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1