summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbanames.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbanames.cxx')
-rw-r--r--sc/source/ui/vba/vbanames.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbanames.cxx b/sc/source/ui/vba/vbanames.cxx
index 4abdd11e00f0..c0a9615eb2bd 100644
--- a/sc/source/ui/vba/vbanames.cxx
+++ b/sc/source/ui/vba/vbanames.cxx
@@ -163,7 +163,7 @@ ScVbaNames::Add( const css::uno::Any& Name ,
{
ScRange aRange;
ScDocShell* pDocSh = excel::getDocShell(getModel());
- if ( pTokens->IsValidReference( aRange ) )
+ if (pTokens->IsValidReference(aRange, aBlank))
xUnoRange = new ScCellRangeObj( pDocSh, aRange );
else
{