Find a named range
int FindRangeByName( LPCSTR lpcszName, string * pStrRange, bool bProjOnly = true, DataRange * pdr = NULL )
-1 if not found, otherwise return the scope 0=sheet, 1=book, 2=project
EX1
void FindRangeByName_ex(string strName) { DataRange dr; FindRangeByName(strName, NULL, false, &dr); if(dr) { string strRange; dr.GetRangeString(strRange, NTYPE_SHORT_NAME_ONLY|NTYPE_ALWAYS_SHOW_COLUMN); out_str(strRange); } else out_str("not found"); }
RangeName
origin.h