![]() |
GetValue() Does Not Work
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. |
All times are GMT +1. The time now is 05:47 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com