MS - Excel Chart Type

Hello,

I am exporting data from Notes To Excel. And generating a Chart. But my user wants the chart type as “saxlsColumnLineChart” and “Line Chart”.

I am not getting the any of the properties for these. where i can get the documention for excel chart type and values to add in Script.

I have searched in SandBox too. I got some break thru to generate charts but not getting above mentioned Chart Type Properties. If you could able to guide me it will be more helpful.

Thanks in advance

Sanjay

Subject: MS - Excel Chart Type

Hi Sanjay,

To find the value of any Office constants, go in to the Visual Basic editor (Tools-Macro-Visual Basic editor in Excel) and open the Object Browser (seems like F2 is usually the shortcut key for this). You can then search for any of the constants you need.

I can’t find saxlsColumnLineChart in there though - where did you get this particular chart type name from?

Emily.

Subject: RE: MS - Excel Chart Type

Hi Emily

I got this from

http://support.softartisans.com/OfficeWriter/ExcelWriter/doc/reference/chartcodes.asp#column

pls go thru once

Thanks

Sanjay

Subject: RE: MS - Excel Chart Type

Hi Emily,

Actually I have tried your solution but did not shows the Chart Type Values.

I need a value for Line-Column Chart Type.

As we have Const xlBarClustered =57 for bar clustered chart.

Thanks

Sanjay

Subject: RE: MS - Excel Chart Type

The easiest way to find the code you need when trying to automate Excel from Notes is to do this:

  • Open a new sheet

  • Start recording a Macro (Tools - Macro - Record New macro)

  • Do whatever it is you want to be able to do in Notes (i.e. create the type of chart you want)

  • Finish recording the macro

  • Go to the visual basic editor and have a look a the code which has been created

I’d say around 80-90% of the code you find there can be copied an pasted into your Notes application. Some of it will need a bit of converting from VB to Lotusscript. Anything that doesn’t seem to work - check out the help file in the Visual Basic editor. This should point you in the right direction.

Try this out with they type of chart you want to create and post back if you have any specific problems.

Good luck!

Emily.

Subject: MS - Excel Chart Type

The FAQ of FAQs and the OLE FAQ both have extensive pointers to help on this issue. Give them a look for some good tips (and the record a macro one has to rank right up top for good practice).

Enjoy.

Doug

Subject: MS - Excel Chart Type

Hi sanjay

following is the list of various chart types try it

Const xlRangeAutoFormatColor1=7

Const xlClipboardFormatStandardFont=28

Const xlDialogActiveCellFont=476

Const xlDialogFont=26

Const xlDialogReplaceFont=134

Const xlDialogStandardFont=190

Const xlPie=5

Const xlLegendPositionBottom=-4107

Const xl3DArea=-4098

Const xl3DAreaStacked=78

Const xl3DAreaStacked100=79

Const xl3DBar=-4099

Const xl3DBarClustered=60

Const xl3DBarStacked=61

Const xlLine=4

Const xlLineMarkers=65

Const xlLineMarkersStacked=66

Const xlLineMarkersStacked100=67

Const xlLineStacked=63

Const xlLineStacked100=64

Const xl3DBarStacked100=62

Const xl3DColumn=-4100

Const xl3DColumnClustered=54

Const xlColumnClustered=51

Const xl3DColumnStacked=55

Const xl3DColumnStacked100=56

Const xl3DLine=-4101

Const xl3DPie=-4102

Const xl3DPieExploded=70

Const xl3DSurface=-4103

Const xlAreaStacked=76

Const xlAreaStacked100=77

Const xlBarClustered=57

Const xlBarOfPie=71

Const xlBarStacked=58

Const xlBarStacked100=59

Const xlBubble=15

Const xlBubble3DEffect=87

Const xlColumnStacked=52

Const xlColumnStacked100=53

Const xlConeBarClustered=102

Const xlConeBarStacked=103

Const xlConeBarStacked100=104

Const xlConeCol=105

Const xlConeColClustered=99

Const xlConeColStacked=100

Const xlConeColStacked100=101

Const xlCylinderBarClustered=95

Const xlCylinderBarStacked=96

Const xlCylinderBarStacked100=97

Const xlCylinderCol=98

Const xlCylinderColClustered=92

Const xlCylinderColStacked=93

Const xlCylinderColStacked100=94

Const xlColor1=7

Const xlColor2=8

Const xlColor3=9

Manu Gupta