Excel.Worksheet xls;
.. <code to create the worksheet, etc.>
xls.Activate();
I get the following warning:
Ambiguity between method
'Microsoft.Office.Interop.Excel._Worksheet.Activate()' and non-method
'Microsoft.Office.Interop.Excel.DocEvents_Event.Activate'. Using method
group.
I am using the Office 2003 PIA's and VS 2005. I just converted this app
from VS2003.
How do I resolve this warning? Our dept standards are to show warnings as
errors.
Thanks,
Al
hgirma@gmail.com - 23 Feb 2006 19:38 GMT
i get the same warning, anyone know a solution?
cb - 24 Jan 2007 21:42 GMT
try this
((_Worksheet)xls).Activate()
From http://www.developmentnow.com/g/21_2006_1_0_0_686466/Warning-Ambiguity-between-m
ethod-Microsoft-Office-Interop-Excel-Worksheet-Activate-and--.ht