I am working on excel automation using MFC.
I want to add one worksheet at the end of the current workbook.
Currently I am using Worksheets::Add(Before, after, Count,Type) method.
i am passing optional parameter like this:
COleVariant oOleVarOptional(DISP_E_PARAMNOTFOUND,VT_ERROR);
_Worksheet m_oNewSheet = m_oSheets.Add(oOleVarOptional,oOleVarOptional,
oOleVarOptional, oOleVarOptional)
So it is adding the sheet before the current active sheet.
But i am not getting what to pass for "after" in order to add the sheet at
the end.
Can anybody help me regarding this... ?
--
Thanks
Ash Jings
09/09/08
Thanks in advance
"Ash Jings" <jinagar...@gmail.com> wrote in message
news:7E033092-15EA-43C1...@microsoft.com...
Drew
"Engineer" <eba...@aol.com> wrote in message
news:e5rZ5gQP...@TK2MSFTNGP06.phx.gbl...