lihui  committed a0b5b3b

Fix for issue: 106274

  • Participants
  • Parent commits 727ee8e
  • Branches default

Comments (0)

Files changed (1)

File sc/source/ui/vba/vbaname.cxx

 ScVbaName::getName() throw (css::uno::RuntimeException)
 	String sName;
-	sName += UniString( getWorkSheet()->getName());
-	sName += String::CreateFromAscii("!");
+	//sName += UniString( getWorkSheet()->getName()); // Resolve the defect that the name get by macro code are not the same with that in UI (for example, if a name of "AA" is found in the UI "Define Names" dialog box, the result of get that name through macro code will be "Sheet1!AA")
+	//sName += String::CreateFromAscii("!");
 	sName += UniString ( mxNamedRange->getName() );
 	return ::rtl::OUString( sName );