【发布时间】:2016-04-22 12:04:44
【问题描述】:
我现在正在为 Libre Office 编写我的第一个宏,但遇到了一个问题:我的代码抛出错误:BASIC 运行时错误;未定义子或函数过程。
带有“If Cells (RowCnt,ChkCol......) 的行会引发错误。 我查看了此处的其他条目,但找不到错误...谁能帮助我?
REM ***** BASIC *****
Sub Zeilennausblenden_Nullsummen
BeginRow=4
EndRow = 46
ChkCol= D
For RowCnt = BeginRow To EndRow step 1
If Cells(RowCnt,ChkCol).Value > 1 Then
Cells(RowCnt,ChkCol).EntireRow.Hidden = True
End if
Next
End Sub
PS:该函数应该隐藏“D”列中出现大于“1”整数的所有行
提前致谢
【问题讨论】:
标签: macros libreoffice