+ Reply to Thread
Results 1 to 5 of 5

Moving to Excel 2010 and line of code causing issues (ungrohp)

  1. #1
    Registered User
    Join Date
    04-01-2005
    Posts
    29

    Moving to Excel 2010 and line of code causing issues (ungrohp)

    Hi. Not sure if this is going to be enough to go by but this...

    Set sr = myChart.Shapes(count + 1).ungroup
    Set SecondBox = sr(2)
    Set FirstBox = sr(1)

    Where the two variables are Excel.Shape

    The above works perfectly in prior versions of Excel but now longer work. I'm not familiar with vba and this line of code, specifically the first, is holding up the upgrade. Is there any way to rewrite it so that it would work in 2010?

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

    Re: Moving to Excel 2010 and line of code causing issues (ungrohp)

    This works for an ungrouped shape within a chart in xl2010

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

  3. #3
    Registered User
    Join Date
    04-01-2005
    Posts
    29

    Re: Moving to Excel 2010 and line of code causing issues (ungrohp)

    Thanks! How would that work with the next two lines? The first and second variables are used for formatting the shapes

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,428

    Re: Moving to Excel 2010 and line of code causing issues (ungrohp)

    Not sure I follow. You would just reference the item array

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-01-2005
    Posts
    29

    Re: Moving to Excel 2010 and line of code causing issues (ungrohp)

    Hey Andy. I just didn't know how it followed through. I thought the way you had it originally was the way it needed to be. Thank you! I will give this a shot in a little bit and report back

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel Not Finishing Calculation Before Moving to Next Line of Code
    By DBCox in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2014, 03:33 PM
  2. Issues after moving to Office 2010
    By supernova5271 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2013, 07:09 PM
  3. [SOLVED] Moving Contents of Line to End of Previous Line in Word 2010 doc
    By staggers47 in forum Word Formatting & General
    Replies: 4
    Last Post: 12-15-2012, 09:17 AM
  4. Y axis issues for line graph - Excel 2010
    By noob99 in forum Excel General
    Replies: 2
    Last Post: 06-08-2012, 11:00 PM
  5. Metadata in Excel 2010 causing issues with sorting
    By bz6djs in forum Excel General
    Replies: 0
    Last Post: 02-14-2012, 10:27 AM

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