Set chart type as Column in VB

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Abishek@0611
Posts: 5
Joined: Thu Jun 08, 2023 11:15 pm

Set chart type as Column in VB

Post by Abishek@0611 »

Is there any way to set chart type as column chart and modify its shape to cylinder from Box?
Last edited by MrProgrammer on Sat Jun 17, 2023 3:56 pm, edited 1 time in total.
Reason: Edited topic's subject
Abishek M
OpenOffice 4.1
Windows 10
JeJe
Volunteer
Posts: 2787
Joined: Wed Mar 09, 2016 2:40 pm

Re: Charts in VB

Post by JeJe »

This is the same question as your other thread - what was wrong with the answer you got there?

viewtopic.php?p=538612#p538612
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Cazer
Posts: 53
Joined: Mon May 15, 2023 11:55 am

Re: Charts in VB

Post by Cazer »

You can use the XlChartType enumeration in VB to set the chart type and shape. For example, if you want a 3D cylinder column chart, you would use the xlCylinderCol value which is 98. Here's the link to the official Microsoft documentation that provides a full list of available chart types and their corresponding values:https://learn.microsoft.com/en-us/offic ... lcharttype
OpenOffice 4.1.14
OS
Abishek@0611
Posts: 5
Joined: Thu Jun 08, 2023 11:15 pm

Re: Charts in VB

Post by Abishek@0611 »

I Need to do this using Open office i have done this with Excel already, is there any possible way to have chart like this in open office through VB.
Attachments
Screenshot 2023-06-13 104753.png
Screenshot 2023-06-13 104753.png (116.86 KiB) Viewed 2230 times
Abishek M
OpenOffice 4.1
Windows 10
Bidouille
Volunteer
Posts: 577
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: Charts in VB

Post by Bidouille »

VB = Microsoft
Do it with (native) StarBasic.
Studdy this snippet code: viewtopic.php?t=88567

If you do not achieve this, attach a document.
Abishek@0611
Posts: 5
Joined: Thu Jun 08, 2023 11:15 pm

Re: Set chart type as Column in VB

Post by Abishek@0611 »

https://www.openoffice.org/api/docs/com ... le-ix.html ---> has anyone tried using this in your code
Abishek M
OpenOffice 4.1
Windows 10
Bidouille
Volunteer
Posts: 577
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: Set chart type as Column in VB

Post by Bidouille »

Did you read my last post? :roll:
Post Reply