Results 1 to 2 of 2

Excel 2007 Shape.Range.Group does not work correctly

Threaded View

jack918 Excel 2007 Shape.Range.Group... 04-15-2010, 05:00 PM
jack918 Re: Excel 2007... 04-16-2010, 11:09 AM
  1. #1
    Registered User
    Join Date
    11-02-2009
    Location
    Unite States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Excel 2007 Shape.Range.Group does not work correctly

    Hi guys,

    It seems Excel 2007 deal with "Shape.Range.Group" differently from Excel 2003.
    I have a program to draw a map using zip data. There is an array to hold each individual shape and group them together and rescale them at the end to get a printable map. This works perfectly fine with Excel 2003 but not for 2007.

    Any idea how I can fix it?

    Following is information about the code
    1) Array "ShapesArray" has 2016 elements:
    ShapesArray(0): Label@35121@1
    ShapesArray(1): Zip@35121@1
    ........
    ShapesArray(2014): Label@36756@1
    ShapesArray(2015): Zip@36756@1

    2). "Me.Location" specifies which worksheet to go

    3). It seems not all the shapes can be grouped and after I re-scale it, some are left over.

    4). Here is the code:
    Set auxGroup = Me.Location.Shapes.Range(ShapesArray).Group <------- Not working here
        With auxGroup
            .ScaleHeight 0.2, msoFalse
            .ScaleWidth 0.2, msoFalse
        End With
    Many thanks to any thought!

    Eric
    Last edited by Leith Ross; 04-16-2010 at 11:15 AM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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