+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Using VBA to group a pie chart and a textbox

  1. #1
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Using VBA to group a pie chart and a textbox

    Hello,

    [See attached image]
    I am trying to group a textbox and a pie chart using VBA without luck.

    The textbox (shown in the lower right corner of the attached image) has been named "DelChart" in the VBA code and the chart is the only chart on the worksheet.

    I've limited VBA knowledge (I tend to create macros and try figure out what's going on then modify them as best I can) so would appreciate if someone could show me the appropriate code required.

    Thanks in advance for any help or guidance.

    MODS: If this properly belongs in another forum feel free to move.
    Attached Images Attached Images
    Last edited by deadlyduck; 11-10-2009 at 02:01 PM.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

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

    Re: Using VBA to group a pie chart and a textbox

    If you mean group then

    Please Login or Register  to view this content.
    Or perhaps the textbox should be contained within the chart object.
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    [SOLVED]Re: Using VBA to group a pie chart and a textbox

    Hi Andy,

    I eventually figured it out by trial and error (and also viewing the code generated by VBA in Excel 2003! For some reason, Excel 2007 wasn't generating macro code for me but Excel 2003 did...????).

    Thanks for coming back on this. I'll mark it as solved.

    deadlyduck

+ 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