Index: worksheethelper.cxx =================================================================== --- worksheethelper.cxx (revision 1515688) +++ worksheethelper.cxx (working copy) @@ -19,8 +19,6 @@ * *************************************************************/ - - #include "oox/xls/worksheethelper.hxx" #include @@ -1073,6 +1071,26 @@ { PropertySet aValProps( xValidation ); + try + { + sal_Int32 nIndex = 0; + OUString aToken = aIt->msRef.getToken( 0, ' ', nIndex ); + + Reference xSheet = getSheetFromDoc( getCurrentSheetIndex() ); + Reference xDBCellRange; + Reference xCell; + xDBCellRange = xSheet->getCellRangeByName( aToken ); + + xCell = xDBCellRange->getCellByPosition( 0, 0 ); + Reference xCellAddressable( xCell, UNO_QUERY_THROW ); + CellAddress aFirstCell = xCellAddressable->getCellAddress(); + Reference xCondition( xValidation, UNO_QUERY_THROW ); + xCondition->setSourcePosition( aFirstCell ); + } + catch( Exception& ) + { + } + // convert validation type to API enum ValidationType eType = ValidationType_ANY; switch( aIt->mnType )