+ Reply to Thread
Results 1 to 4 of 4

Thread: Plotting a custom template using VBA

  1. #1
    Registered User
    Join Date
    12-01-2009
    Location
    Austin, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Plotting a custom template using VBA

    Hi,

    I have a template called "Ziad". The current command I am using now is

    .ChartType = xlXYScatterSmoothNoMarkers
    I tried to use this command to use the template I created but it didn't work

    .ChartType = xlXYZiad
    Could you please tell me what is the command I need to use to create a graph from a template?

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,349

    Re: Plotting a custom template using VBA

    try using the ApplyChartTemplate rather than setting the ChartType.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-01-2009
    Location
    Austin, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Plotting a custom template using VBA

    can you explain more what should I write?

    I am a beginner in VBA

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,349

    Re: Plotting a custom template using VBA

    Did you look in the help?

    Did you try recording a macro whilst applying a template to the chart?

        ActiveChart.ApplyChartTemplate ( _
            "C:\Users\xxx\AppData\Roaming\Microsoft\Templates\Charts\RS_Main_5.crtx" _
            )
    Pretty difficult to provide code in context with the code you had already provided.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

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.2.0