L
Landon
I use Visual C++ MFC 4.2.
I need to get the value of some cells like in my code below:
LPDISPATCH lpDisp = sheet.GetRange( COleVariant( "A8" ), COleVariant(
"A10" ) );
VARIANT varRet = range.GetValue();
CString sVar( varRet.bstrVal );
if( sVar.IsEmpty() ){
}
The bug is: even if A8 has already been filled with values, it still detect
the whole range as Empty.
How to fix this?
Thank you very much.
I need to get the value of some cells like in my code below:
LPDISPATCH lpDisp = sheet.GetRange( COleVariant( "A8" ), COleVariant(
"A10" ) );
VARIANT varRet = range.GetValue();
CString sVar( varRet.bstrVal );
if( sVar.IsEmpty() ){
}
The bug is: even if A8 has already been filled with values, it still detect
the whole range as Empty.
How to fix this?
Thank you very much.