M
Matthew Wieder
The following C# code:
Excel.Comments tmpComments = m_TargetWorksheet.Comments;
foreach(Excel.Comment tmpComment in tmpComments)
{
tmpComment.Delete();
}
Fails with a "Member not found." exception, whether the worksheet has
comments in it or not. The same call in VBA works fine whether the
workbook has comments or not.
I'm using the Office 2002 PIAs for automation. Does anyone know why the
Comments member is not recognized?
thanks!
Excel.Comments tmpComments = m_TargetWorksheet.Comments;
foreach(Excel.Comment tmpComment in tmpComments)
{
tmpComment.Delete();
}
Fails with a "Member not found." exception, whether the worksheet has
comments in it or not. The same call in VBA works fine whether the
workbook has comments or not.
I'm using the Office 2002 PIAs for automation. Does anyone know why the
Comments member is not recognized?
thanks!