norbs101
asked on
excel worksheets.add xlchart
I am trying to create a new worksheet of type xlChart (-4109) using the Excel COM interface.
The .add method allows me to add 3/4 types of sheets.
xlDialogSheet = -4116
xlExcel4IntlMacroSheet = 4
xlExcel4MacroSheet = 3
xlWorksheet = -4167
But the com interface throws an error when I try to create the xlChart (xlChart = -4109) type.
Any suggestions on creating a xlChart type sheet in code?
The .add method allows me to add 3/4 types of sheets.
xlDialogSheet = -4116
xlExcel4IntlMacroSheet = 4
xlExcel4MacroSheet = 3
xlWorksheet = -4167
But the com interface throws an error when I try to create the xlChart (xlChart = -4109) type.
Any suggestions on creating a xlChart type sheet in code?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The Charts.Add method worked perfectly!
Thank you.
Thank you.
Open in new window