Excel chart with OLE

Dear experts,
I am using OLE to automate data into Excel chart. My problem now is i would like to change the font size in chart area at X and Y axis. What method and property should i use in order to change the size of the font in chart area?
Thanks in advance.
Simonksh

Hi,
To know the method and property,
- U can start recording a Macro and then
- Try changing the font size at x and y axis.
- Then stop recording the Macro.
- Go to that Macro in Edit Mode and see the code, U can figure out the Method & Property.
-Satya Priya

Similar Messages

  • How to link Excel Chart with multiple columns dynamically?

    Hi all,
    I have one problem. I have an excel chart which has to read data from multiple columns for it's X-axis values (time stamps) and the same number of values for it's Y-axis from multiple columns. See figure attached.
    Now, you can do this by manually assigning values by holding control key to tell the chart that data from many columns is continued from the first column. i.e, a long data is distributed along may columns. This is done very easily manually.
    Now, how to do it at runtime through LabVIEW 8.0?
    Although, I have done it through labview when there where only two columns, A and B streching up to any length. But, now to save space we are dumping into many columns in the same page and want the chart plot that data as we dump it. 
    It is tough since I don't know how to assign SourceData of the chart through labview.
    I have attached chart's SourceData picture.
    Hope you all can solve my problem.
    The Y-axis values are: =(good!$B$30:$B$70,good!$D$30:$D$70,good!$F$30:$F$70,good!$H$30:$H$70,good!$B$71:$B$140,good!$D$71:$D$140,good!$F$71:$F$140,good!$H$71:$H$140,good!$B$141:$B$189)
    good is the name of the file.
    The X- axis values are: =(good!$A$30:$A$70,good!$C$30:$C$70,good!$E$30:$E$70,good!$G$30:$G$70,good!$A$71:$A$140,good!$C$71:$C$140,good!$E$71:$E$140,good!$G$71:$G$140,good!$A$141:$A$189)
    See the columns vary from A to F.
    I have still not got what I love.....
    Attachments:
    ExcelChart.JPG ‏113 KB
    SourceData.JPG ‏34 KB
    XY values.JPG ‏36 KB

    Ok i solved the excel chart problem. Here is the figure showing my victory! But offcourse with NI forum help.
    Message Edited by Halemani on 09-19-2008 06:33 AM
    I have still not got what I love.....
    Attachments:
    Chart_XValues_Values.JPG ‏36 KB

  • Setting the aixs minimum in excel chart using OLE.

    Hi All,
              The problem am facing is that say if all the values in the chart data range is high  then excel adjusts itself so that the axis minimum doesn't start from zero. But i need the axis to always start from zero. How do i set this using OLE?

    Hi
    Here is ur expected coding...
    REPORT ZCREATEEXCEL.
    TYPE-POOLS OLE2.
    DATA: EXCEL TYPE OLE2_OBJECT,
    WORKBOOKS TYPE OLE2_OBJECT,
    WORKBOOK TYPE OLE2_OBJECT.
    DATA: FILENAME LIKE RLGRAP-FILENAME.
    START THE EXCEL APPLICATION
    CREATE OBJECT EXCEL 'EXCEL.APPLICATION'.
    PERFORM ERR_HDL.
    PUT EXCEL IN FRONT
    SET PROPERTY OF EXCEL 'VISIBLE' = 1.
    PERFORM ERR_HDL.
    INFORM USER OF THE CURRENT STATUS
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
    PERCENTAGE = 0
    TEXT = TEXT-I08
    EXCEPTIONS
    OTHERS = 1.
    CREATE AN EXCEL WORKBOOK OBJECT
    CALL METHOD OF EXCEL 'WORKBOOKS' = WORKBOOKS.
    PERFORM ERR_HDL.
    CALL METHOD OF WORKBOOKS 'ADD' = WORKBOOK.
    PERFORM ERR_HDL.
    EXCEL FILENAME
    CONCATENATE SY-REPID '_' SY-DATUM6(2) '_' SY-DATUM4(2) '_'
    SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
    CALL METHOD OF WORKBOOK 'SAVEAS' EXPORTING #1 = FILENAME.
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
    WRITE: / 'OLE ERROR: RETURN CODE ='(I10), SY-SUBRC.
    STOP.
    ENDIF.
    ENDFORM.
    Reward if usefull

  • Excel chart - create second axis

    I've created a script which makes an Excel object, takes some data, generates a chart and then exports the chart as a JPG. The thing is it's a CPU report with one series for Mhz and one for % - and using only one axis results in it ending in the thousands
    and not being able to see the second series. Do you know how to specify a second axis on the right-hand side (left for Mhz right for %) which would only go up to 100? I don't even know how to do it in Excel, never mind PowerShell.
    Thanks in advance. Oh yeah, here's my code:
    # Generate graph
    $xRow = 1
    $yRow = $rows
    $objRange=$Worksheet.range("a${xRow}:c${yRow}")
    $colCharts=$excel.Charts
    $objChart=$colCharts.Add()
    $objChart.ChartType=4
    $objChart.Axes(0).CategoryType=2
    $objChart.Axes(0).TickLabelSpacing=7
    $objChart.HasTitle = $true
    $objChart.ChartTitle.text = "CPU Report"
    $a=$objChart.Activate
    $savepath = "C:\"
    $a=$objChart.export($savepath + "cpu.jpg","JPG")

    Hi Bobbinspenguin,
    If you want to add a second series in Excel chart with powershell, please refer to this article:
    Tutorial: PowerShell and Microsoft Chart Controls (or How To Spice Up Your Reports)
    I hope this helps.

  • Copy Excel Chart into Illustrator: Problem with dotted lines

    Copying an excel chart (2010 and/or 2013, Windows 7 Ultimate) to Illustrator CS6 works okay if line chart lines are solid... but if they are dotted, then in Excel 2010, the dotted line becomes jumbled, and in Excel 2013, the dotted line converts to a solid line... is the only solution to this to save the exel chart as a pdf, or is there another workaround?
    Essentially, I am creating a chart in excel and adding a few notations and graphic elements in illustrator for professional publishing...
    any help would be appreciated... thanks

    This is a follow-up (somehow, my original question was logged under OOBIMICHAEL):
    I finally broke down and bought a MacBook Pro, installed CS6 and Office 2011... and voilà... dotted lines copy from excel to illustrator just perfectly... this is a bit like copying data from Visio to Word, etc... these programs render graphics in very different ways... other than the Mac solution, I also tried the Libre Suite (open source)... which also worked perfectly to copy excel data with dotted lines to illustrator... so, until MS and Adobe actually collaborate together to provide value to its customers, the alternative seems (1) open source, (2) buy a Mac...

  • Excel macro will not run with OLE

    I have an ABAP program which builds an Excel macro with VBA code, downloads the file and inserts it into a new Excel workbook, and then runs the macro to populate the workbook.  All of this is being done via OLE functionality.
    The process works correctly for 99% of our user community.  However, some users are having trouble where when the Run Macro command is executed, the program just hangs and nothing happens.
    Here's a snippet of the code:
      CREATE OBJECT excel 'EXCEL.APPLICATION'.
    Insert macro file into the spreadsheet.
      CALL METHOD OF excel 'Modules' = ole_module NO FLUSH.
      CALL METHOD OF ole_module 'Add' = ole_newmodule NO FLUSH.
      CALL METHOD OF ole_newmodule 'Activate' = ole_activate NO FLUSH.                                              
      CALL METHOD OF ole_newmodule 'InsertFile' = ole_insertfile NO FLUSH EXPORTING #1 = macrofile.                   
      FREE OBJECT ole_insertfile NO FLUSH.                    
      FREE OBJECT ole_activate NO FLUSH.                     
      FREE OBJECT ole_newmodule NO FLUSH.
      FREE OBJECT ole_module.
    Execute the macro(s).
      macro_name = 'load_data_zsddxl'.                        
      CALL METHOD OF excel 'Run' = ole_run EXPORTING #1 = macro_name.                             
      FREE OBJECT ole_run.                                     
    The automation trace gives me this message (sorry about the formatting):
    <26=Automation:    CALL METHOD "Run" OF [#12/0x109B0C4C/101/Excel.Application.14]
                        #0: STRING "load_data_zsddxl"
    <26=Automation(Error):    CALL METHOD "Run"[DispID=259] OF [#12/0x109B0C4C/101/Excel.Application.14]
                        #0: STRING "load_data_zsddxl"
    IDispatch::Invoke raised exceptionThe remote procedure call failed
    <26=Automation(Error):   
    <26=Automation(Error):    ****************************ERROR OCCURED IN MODULE: [Microsoft Excel Application]**********************************************************************************************************************************
    <26=Automation(Error):    PROGRAM_ID               |MODULE_NAME                     |METHOD_NAME             |ERROR DESCRIPTION                    |VERSION            |GUI VERSION               |MODULE_PATH                                 |
    <26=Automation(Error):    **********************************************************************************************************************************************************************************************************************
    <26=Automation(Error):    Excel.Application.14     |Microsoft Excel Application     |Run                     |The remote procedure call failed     |14.0.5138.5000     |Gui Version not found     |C:\PROGRA1\MICROS1\Office14\EXCEL.EXE     |
    <26=Automation(Error):    **********************************************************************************************************************************************************************************************************************
    <26=Automation(Error):   
    What's strange is that if after starting Excel I set the property VISIBLE = '1', everything works as expected.
    The affected users are running on Windows7 with Excel 2010.
    Thanks for any direction you can provide.

    No, I don't.  It's been my understanding that by omitting the "NO FLUSH" from a command, that the accumulated commands are flushed at that point.  But I'll give it a try.  Willing to try anything at this point.
    Thanks.

  • Excel chart download?

    Hi,
    i'am searching for a method to download a table from R/3 to an excel file and to create in this excel file one folder with the data and one with a chart of these data.
    Is something like this possible?
    Thanx
    Tony

    Hi
    GUI_UPLOAD is normally used to upload text files. For uploading excel file, its better to use ALSM_EXCEL_TO_INTERNAL_TABLE.
    For Excel Downloading with COloured COlumns
    Please use FM “XXL_FULL_API”.
    You can refer report program XXLFTEST or XXLTTEST.
    EXCEL_OLE_STANDARD_DAT Just calls MS_EXCEL_OLE_STANDARD_DAT
    SLPC OLE - PC interface MS_EXCEL_OLE_STANDARD_DAT Downloads internal table and opens it in MS Excel. Example.
    KCDE Data transfer from PC files KCD_EXCEL_OLE_TO_INT_CONVERT Uploads an *.xls file to internal table (max cell length = 32). Example. This function uses a range selection and copy-paste technique, therefore it quite fast.Q
    There is another Example 2 that reads data from Excel file cell by cell.b
    ALSMEX FI-AA Legacy Data Transfer w/ Excel
    ALSM_EXCEL_TO_INTERNAL_TABLE the same as KCD_EXCEL_OLE_TO_INT_CONVERT but max cell length = 50
    FTBU_CONV General conversion
    FTBU_START_EXCEL just [download internal table to file and] start Excel (w/o OLE). See also WS_EXCEL
    The TXXL function group uses the DLLs and other files installed with SAPGUI in directory: ...\Program Files\SAP\FrontEnd\SAPgui\xxl\
    Can work both with Excel and Lotus 1-2-3:
    TXXL EXCEL - list viewer interface
    XXL_FULL_API Output Excel list viewer list SAP examples:
    XXLFTEST (XXL Test Environment / XXL_FULL_API Example)
    XXLTTEST (XXL Interface: Test Program for Formats and Types (also XXL_FULL_API))
    XXLSTEST (XXL Test Environment / XXL_SIMPLE_API Example)
    XXL_SIMPLE_API Output list viewer list with reduced functions
    XXL_CHECK_API Examble of use in customer reports:
    if question = 'STARTABLE'
    and return_code <> 0
    then "Download to Excel" button has to be excluded from a pf-status
    In fact, the return_code is always set to 0 in the FM source code s.
    check
    http://www.geocities.com/victorav15/sapr3/abapfun.html#ole
    Reward all helpfull answers
    Regards
    Pavan

  • Excel Upload With Multiple Worksheets

    Friends,
    I have requirement wherein I have to read data from an excel file with multiple worksheets. I have gone through some earlier postings but most of them explain about creating an excel file with multiple worksheets (which is right oppsite of what I need to do)
    I am trying to understand the concept of OLE and implement it but am finding it tricky!
    Please help me out!
    Thanks,
    Shyam

    See this site: AN EASY REFERENCE FOR OLE AUTOMATION by Serder Simsekler.
    Best!
    Jim

  • Excel Template with Multiple Sheets

    Hi everyone,
    I need to build Excel template with multiple sheets where each sheet should have at-least one chart.
    Thanks
    Aravind

    Hi
    Could you please explain those ways here.?
    Many Thanks,
    BK

  • Excel Upload with Hidden Column

    Hi Gurus-
    Can you upload Excel file with hidden column and get the function to read values in hidden column? If yes, could you please guide me how?
    I am using ALSM_EXCEL_TO_INTERNAL_TABLE
    Any help will be highly appreciated.
    Thanks in advance!

    Hi,
    Have a look at program RSDEMO01 (available in the controls examples of the workbench). It demonstrates an OLE connection to Excel.
    To know which excel objects, methods and properties to use it is a good idea to use the excel macro recorder - just do what you want your program to do and then translate the resulting VB code to ABAP OLE.
    For the import of the clipboard data you can use CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT. In the result table, iirc, there  is one line for each imported line and within the line the cell values are separated by tab. So there is some work left - it might be a good idea t import the data column by column.
    It has been some time when I did this for a former client of me - so unfortunately I do not have the code any more.
    Regards, Gerd Rother

  • How to put header and footer information in excel chart

    I modified the create chart.vi, I got from this site and able to create a chart from *.xls file. Now I want to print the filename as header and date and time the chart created as footer in the excel chart. Any idea is appreciated.
    Thank you
    MM
    Attachments:
    Create_Rundown_Chart.vi ‏246 KB
    SN20755-Horiz_1-031027-160128-rundowndata.xls ‏15 KB

    Under the property node _Chart where you have the ChartTitle, add the property PageSetup. Cascade that into another property node and choose CenterHeader and CenterFooter. You can write the strings directly into these properties. Use the following codes:
    Filename = &F, Date = &D, Time = &T
    Be sure to close all references that do not leave the page (ie. Chart, Legend, ChartArea, etc.). Otherwise Excel will hang later on.
    Michael Munroe
    www.abcdefirm.com
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • Acrobat X Pro does not print Excel charts from 2010 Word doc to PDF correctly

    Hi,
    I am trying to create a PDF from Word 2010 using Adobe Acrobat X and preserve hyperlinks but when I go through the PDF maker toolbar, the Excel charts in the Word file do not print correctly. They come up as large white boxes with a small grey arrow icon in the lower-right corner (looks like a "play" button). Does anyone know why this is and if there's a solution to this problem? Is there an update or a fix? I have a lot of Excel charts in the Word file...
    Thanks in adavance,
    Kika

    Hello,
    i am having exactly the same issue with Acrobat X Pro - with linked Excel 2010 tables in Word 2010.
    Has there been a resolution to this eissue - it is potentially very time consuming to work around this issue for me.
    I would post my files but I don't know how to attach them to the thread - only my second post .
    Cheers,
    slobbering_dog
    This is the Word File - the table is an Excel 2010 spreadsheet linked (via Paste Special >Link) .
    This is the resultant PDF file:
    Thanks in advance - again !!
    Message was edited by: slobbering_dog_72

  • ALV to EXCEL along with the color

    Hello,
          Is it possible to download an ALV report output to an EXCEL along with the color in the ALV report.I made an ALV report with some rows having red color depending on a bussiness logic. When user downloads the ALV report to excel from standard ALV layout they cannot get the colors in the excel. Is there a way to do this or any sunstitute?
    Thanks,
    Giri.

    Hi Giridhar,
    Have a look at this code
    Download a report to excel with format (border, color cell, etc) 
    Try this program...it may help you to change the font ..etc.
    Code:
    REPORT ZSIRI NO STANDARD PAGE HEADING.
    this report demonstrates how to send some ABAP data to an
    EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_MAPL TYPE OLE2_OBJECT,         " list of workbooks
          H_MAP TYPE OLE2_OBJECT,          " workbook
          H_ZL TYPE OLE2_OBJECT,           " cell
          H_F TYPE OLE2_OBJECT.            " font
    TABLES: SPFLI.
    DATA  H TYPE I.
    table of flights
    DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
    read flights
      SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
    display header
      ULINE (61).
      WRITE: /     SY-VLINE NO-GAP,
              (3)  'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (4)  'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (8)  'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
      ULINE /(61).
    display flights
      LOOP AT IT_SPFLI.
      WRITE: / SY-VLINE NO-GAP,
               IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
      ENDLOOP.
      ULINE /(61).
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-007
           EXCEPTIONS
                OTHERS     = 1.
    start Excel
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
    PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
    PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-008
           EXCEPTIONS
                OTHERS     = 1.
    get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
      PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - start
    CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP  EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    tell user what is going on
      SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - end
    disconnect from Excel
         CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING  #1 = 'C:\SKV.XLS'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM FILL_CELL USING I J BOLD VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
      WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
      STOP.
    ENDIF.
    ENDFORM.                    " ERR_HDL
      Have a look this Link
    http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
    Regards,
    Santosh

  • Excel chart alignment problems when creating PDF

    My excel chart is off set on my PDF page after creating PDF from Macro.  The chart is within my print areas in excel and no matter where I position the chart in excel the chart shows up like it is indented on the PDF and runs off the page.  I can print from excel and the results are fine.  I am operating a windows 2007 64 bit machine with excel 2007 and ADOBE Acrobat 9 Pro & Adobe Reader X.
    I am running the following code by Ron de Bruin to generate the PDF
    Myvar.ExportAsFixedFormat _
       Type:=xlTypePDF, _
       FileName:=Fname, _
       Quality:=xlQualityStandard, _
       IncludeDocProperties:=True, _
       IgnorePrintAreas:=False, _
      OpenAfterPublish:=OpenPDFAfterPublish
    No matter what I do I can not get the chart completely in the page through VBA.  The VBA code works fine it is the results of the PDF I can't seem to fix.
    Many thanks for any help.

    Hi,
         I tried to do the same with a Excel having a so much content. I tried to print that file into a PDF file, I saw the output file as expected. I think there might be some different settings in your PDF printer. Can you please send me the screenshot of PDF Printer Dialog Box launched after invoking Print To PDF from Excel?

  • Is it possible to write a script for Excel Chart Conversion to an ai file?

    I tried to record a script and it didn’t work. I will attempt to explain what I am doing (and why) and maybe you guys can tell me if it can be done or not. We are working with Excel charts and we eventually put them into InDesign for a print magazine. Here are the steps as best as I can translate. We are using Illustrator CS6 Version 16.2.0.
    1. Copy Chart from Excel
    2. Paste into Illustrator
    3. Fit Art Board to Graphic
    4. Select All
    5. Change Kerning to 0
    6. Select the Background
    7. Select Same Fill Color
    8. Change Color to 5% Black
    9. Select the grid lines on the Chart
    10. Change the Stroke to 50% Black
    11. Save as an AI file
    There is also a scenario where there are multiple charts and we would like to make multiple art boards in the same file.
    I do this for a few reasons: Remove Rich Black, Adjust Kerning, Eliminate any Font Issues, Easier to Scale, and it chokes our rip because there is no link when they are copied and pasted directly from Excel to InDesign.
    Any guidance would be appreciated. 

    no can do, there's no access to mesh point with scripting, sorry about that.
    have you tried Mesh Tormentor? it is free!!!, but I don't know if it will help with your problem
    http://www.meshtormentor.com/

Maybe you are looking for