Hi,
I'm having trouble locating the worksheet name ,
My code uses as following:
Can you tell me where did I go wrong?
because from this post says it takes no arguments so I set the number of arguments to 0 .
The error I get is :
![Name: bug1.jpg
Views: 44
Size: 10.3 KB]()
When I use the code snippets from above post, it runs fine.
Did I misspelled the property name "NAME"?
Thanks you!
I'm having trouble locating the worksheet name ,
My code uses as following:
Code:
IDispatch* xlSheet; //<--get xlSheet ok
VARIANT result4;
VariantInit(&result4);
AutoWrap(DISPATCH_PROPERTYGET, &result4, xlSheet, L"Name",0);
if (result4.vt == VT_BSTR)
{
}
because from this post says it takes no arguments so I set the number of arguments to 0 .
The error I get is :
When I use the code snippets from above post, it runs fine.
Did I misspelled the property name "NAME"?
Thanks you!