Hi TechGurus,
I have overwritten the Excel and doing multiple manipulations based the selected object.
I am getting the correct selected object by using the application.selection property
object selectedObj = _xlApp.ActiveWindow.Selection;
and based on the selected object I am checking if the selected object is not a Range object then call the default windowProc so that Excel can handle those messages.
if (!(selectedObj is MsExcel.Range))
{
base.WndProc(ref msg);
handled = true;
}
But, due to instruction: object selectedObj = _xlApp.ActiveWindow.Selection;
I am not able to resize the size of comment window in Excel.
Please suggest some other method through which i can get the selected object.
Thanks in Advance.
- virenk