+ Reply to Thread
Results 1 to 5 of 5

generate two charts on one slide in ppt using vba

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2010
    Posts
    5

    generate two charts on one slide in ppt using vba

    hello everyone, i need a code for counting number of chart object and ploting 2 charts per each slide in ppt using vba...please help me out..

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: generate two charts on one slide in ppt using vba

    This macro will count your chart objects:

    Please Login or Register  to view this content.
    when you say you want to plot 2 charts per slide, what do you mean? This code adds 2 charts to a slide:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-04-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: generate two charts on one slide in ppt using vba

    thanks nickyC for ur reply ..but it is not the correct answer which i need here down i vl post my code


    From these i can able to generate chart on each slide but i need bit modification that to generate 2 charts per each slide.For that we need to count number of chart from sheet and put in a loop in sucha way that it has to take 2 chart and adjust in one slide instead of taking one slide..
    Last edited by spurthi008; 10-08-2012 at 01:09 AM.

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: generate two charts on one slide in ppt using vba

    Hi
    can I suggest you put your code in code marks, or a moderator might intervene
    wha's in file D:\xyz.pptx ?

  5. #5
    Registered User
    Join Date
    10-04-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: generate two charts on one slide in ppt using vba

    hello...

    i got the solution for above forum.
    it can be done by calling chartsname i.ee..
    if obt. chartName like "*xyz*" then
    add slide
    adjust the position to the chart.
    end if.

+ 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