create step chart using xlsxwriter module - xlsxwriter

I need to create a step chart using xlsxwriter. I have looked into documentation but could not find any information. Is it possible to create a step chart using xlsxwriter?
https://xlsxwriter.readthedocs.org/en/latest/chart.html

To quote your link "A step chart in Excel can be created from a regular line chart and some clever formatting of your data".
XlsxWriter supports line charts so I guess that it is up to you to do the clever formatting of the data.

Related

how to use range_name in data validation in openpyxl as a list?

i was trying to create define_name and to use them in Data validation in excel using openpyxl? because there is no docs available for this part can please someone help me regarding this ?

Create a VBA Macro to create BoxPlot Charts

I am a beginner in VBA, so be indulgent in my lack of methodology while working on some VBA macro for Excel.
My goal is to create some BoxPlot Charts in Excel at this time, I have been able to create some For/If loop to capture the Data in my different worksheets (ex: I have a Ftotal column in each worksheet, but from different length that I want to add to my boxplot). For some graphs (xlcolumnclustered, ...) I have been able to simply write:
ActiveChart.ChartType = xlColumnClustered
But, when I want to do it for a box plot (xlboxwhiskler) I have not been able to complete it. So I have tried to record a macro while I was creating a box plot graphs in a chart sheet and I have been able to capture:
ActiveSheet.Shapes.AddChart2(406, xlBoxwhisker).Select
Which is not working when I am runing my Macro. Btw way, I can't figure our why I get an Activesheet instruction whereas I was on a chart page (seems strange to me, I was expecting an ActiveChart).
So my question are:
Is there a xlboxwhiskler working to create a Box Plot Chart ?
If not, is there another way ? (I have some info from here and here). Just FMY, why is Set used for ?
Finally my last solution is about to calculate everything (it might be challenging to do so), but the link here might be useful
If you have any suggestion, I remain open for it. It will then post my solution.

Can we add Cell border for every row data in Excel writer or Excel output in Pentaho?

I am working on Pentaho data integration and I am appending data into an excel sheet. Data is appending into the excel sheet perfectly but I need to provide the border for every cell. Is there anyway anybody can suggest me?
You can make use of Template feature of Microsoft Excel Output and Writer Steps.
1. Create a template with a cell having a border as per your requirement:
2. Use Microsoft Excel Writer step to define the template:
Make sure to make use of "write to existing sheet" in Excel.
3. In the field section of the Step, make sure to add the style Cell number. In my case it was D2 cell. This will read the data and add border to your data set.
Hope this helps :)
Final Output:

Pasting an Excel chart into a Word document so it is editable but not linked

I'm using VBA to create a series of charts in Excel and then copying them into a Word file.
Up till now I've been pasting the charts as pictures, so in Excel I used
ActiveChart.CopyPicture
and then in Word, after selecting the target location:Selection.Paste.
Now I want to change it so the charts will be editable but not linked to the source Excel file.
I copy a chart from Excel using ActiveChart.ChartArea.Copyand look at the paste-special options in Word, the options "use destination theme/keep source formatting & embed workbook" work fine for me:
the chart is editable (also the data is editable which I don't need but is OK) and there is no link to the original Excel file.
BUT - I can't find how to perform this through VBA code. Trying to record this in a macro only give me Selection.Paste - which pastes a linked chart.
I also tried a different approach - pasting a linked chart, and then killing the link. once again, deleting the links in the link editor doesn't get recorded in the macro at all.
Please help with coding any of these two options or suggesting a different approach.
The Range.PasteAndFormat method should work. This takes a WdRecoveryType Enum parameter that lets you specify what kind of result you want.
Selection.PasteAndFormat(wdChart) 'Enum value 14 in case of late binding

vba command to paste special KeepSourceFormatting(K) in powerPoint

i am trying to take a cell range from excel and copy it to powerpoint2010. However I do not want to use the Embedded format but rather the KeepSourceFormatting one. I tried the following command
ActiveWindow.View.PasteSpecial DataType:=ppPasteOLEObject, Link:=msoFalse
but this still creates an object that launches excel to edit the contents.
basically I want to paste a table of formated data from excel to powerpoint and maintain its appearance but still be able to edit the contents in powerpoint.
any ideas?
There are following options for DataType:
ppPasteEnhancedMetafile which allows edition each of separate field of the table (rather pure solution)
ppPasteMetafilePicture similar option
ppPasteOLEObjectwhich you know
I can't see any other option.