作者:乔山办公网日期:
返回目录:excel表格制作
// 大概道这么个思路,没验证~
public static String getlocationFromCell(Cell cell) {
回int colIndex = cell.getColumnIndex();
// note: 行的序列答号开始于1
int rowIndex = cell.getRowIndex()+1;
String colStr = null;
if(colIndex<26) {
colStr = (char)(colIndex+65)+"";
} else {
char a = (char)(colIndex/26+64);
char b = (char)(colIndex%26+65);
colStr = a+""+b;
}
return colStr+rowIndex;
}
选择单元格,插入超链接。
注意表来格和文件图片最好在同一个文件夹自
拷贝的时候直接拷贝文件夹,这要不容易造成链百接丢失或者失效。
建议将图片插入到excel的一个工作表中,直接在表里面进度行连接,该工作表可以设置为隐藏。