I’m trying to learn how to create Excel graphs using LotusScript. From going through the forums, I found that recording the macro in Excel is a great way to generate the code for use within LotusScript. But I have a bit of a problem. The code below was created by the macro recorder…
Range("A2:F7").Select
Range("F7").Activate
Charts.Add
ActiveChart.ChartType = xlColumnClustered
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("A2:F7"), PlotBy:= _
xlRows
ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1"
With ActiveChart
.HasTitle = False
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = False
End With
Sorry I can’t be much help on this. However, I ‘thought’ when you were using the API you would leave the call similar to how it is structured in VBS (What you have)?
Here is the link to the API documentation on MSDN.
Excel function can have their parameters passed by Name (as in your example) or by Position (as in LotusScript).
You’ll need to look up the functions in the Excel help to see which positions those named parameters should be in, and reconstruct the call using the positional syntax.