Excel VBA : Conta le Righe in un Foglio
Di seguito il Listato per calcolare e Visualizzare
le Righe in un Foglio Excel
Viene Utilizzato per calcolare il Numero di Istanze Richieste e Non Richieste.
Private Sub Worksheet_Activate()
Dim ScorriRigheDati As Integer ' Contatore Utilizzato per Scorrere le Righe
Dim Conta***Richieste As Integer
Dim Conta***NonRichieste As Integer
' Aggiorno i Contatori
ScorriRigheDati = 2
Conta***Richieste = 0
' Conto il Numero di *** Richieste
While Trim(Worksheets("Dati").Cells(ScorriRigheDati, 6)) ""
Conta***Richieste = Conta***Richieste + 1
ScorriRigheDati = ScorriRigheDati + 1
Wend
' Aggiorno i Contatori
ScorriRigheDati = 2
Conta***NonRichieste = 0
' Conto il Numero di *** Non Richieste
While Trim(Worksheets("***NonRichieste").Cells(ScorriRigheDati,...
Leggi il seguito »
le Righe in un Foglio Excel
Viene Utilizzato per calcolare il Numero di Istanze Richieste e Non Richieste.
Private Sub Worksheet_Activate()
Dim ScorriRigheDati As Integer ' Contatore Utilizzato per Scorrere le Righe
Dim Conta***Richieste As Integer
Dim Conta***NonRichieste As Integer
' Aggiorno i Contatori
ScorriRigheDati = 2
Conta***Richieste = 0
' Conto il Numero di *** Richieste
While Trim(Worksheets("Dati").Cells(ScorriRigheDati, 6)) ""
Conta***Richieste = Conta***Richieste + 1
ScorriRigheDati = ScorriRigheDati + 1
Wend
' Aggiorno i Contatori
ScorriRigheDati = 2
Conta***NonRichieste = 0
' Conto il Numero di *** Non Richieste
While Trim(Worksheets("***NonRichieste").Cells(ScorriRigheDati,...
Leggi il seguito »
Invia questo articolo via email
LEGGI LE ALTRE NOTIZIE DE "IL BLOGGATORE"










