Advertisement
LO_Ralle

Funktion

Apr 2nd, 2022
1,091
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function FnCountCells (iStartCol As Long , iStartRow As Long, iTab As Integer) As Long
  2.  
  3.     REM Zählt die Anzahl nichtleerer Zellen, beginnend ab Spalte iStartCol und Zeile iStartRow in Tabelle iTab
  4.    
  5.     Dim oSheet
  6.     Dim iAnz As Long
  7.     oSheet =ThisComponent.Sheets(iTab)
  8.     iAnz = 0
  9.     Do Until oSheet.getCellByPosition( iStartCol , iStartRow ).getType = 0
  10.         iAnz = iAnz + 1
  11.         iStartRow = iStartRow +1
  12.     Loop
  13.     FnCountCells = iAnz
  14. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement