aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/ss')
-rw-r--r--src/java/org/apache/poi/ss/util/CellRangeAddress.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/util/CellRangeAddress.java b/src/java/org/apache/poi/ss/util/CellRangeAddress.java
index 4a7ec73155..4a44a6c8a5 100644
--- a/src/java/org/apache/poi/ss/util/CellRangeAddress.java
+++ b/src/java/org/apache/poi/ss/util/CellRangeAddress.java
@@ -17,6 +17,7 @@
package org.apache.poi.ss.util;
+import org.apache.poi.ss.formula.SheetNameFormatter;
import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.hssf.record.SelectionRecord;
import org.apache.poi.util.LittleEndianByteArrayOutputStream;
@@ -89,7 +90,7 @@ public class CellRangeAddress extends CellRangeAddressBase {
public String formatAsString(String sheetName, boolean useAbsoluteAddress) {
StringBuffer sb = new StringBuffer();
if (sheetName != null) {
- sb.append(sheetName);
+ sb.append(SheetNameFormatter.format(sheetName));
sb.append("!");
}
CellReference cellRefFrom = new CellReference(getFirstRow(), getFirstColumn(),