Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一堆单元格,如果它们的内容溢出,我想调整它们的字体大小,直到它们都适合。我想编写一个宏来执行此操作,除非有条件格式或其他公式化的方法。是否有一个属性可以告诉单元格是否溢出?如果是这样,它是什么?
'开放办公室 3
'获取当前文档 oDoc = ThisComponent
' 获取第一张工作表 oSheet = oDoc.getSheets().getByIndex(0)
'工作表的第一个单元格
Cell = oSheet.getCellByPosition(0, 0) MsgBox Cell.CharHeight
快乐的编码:))