Link to home
Start Free TrialLog in
Avatar of upobDaPlaya
upobDaPlaya

asked on

WIthin VBA summing record count in 3 tabs

Within VBA I am trying to determine how to:

Sum Column A record Count in Worksheet A  * 2 + Sum Column A record Count in Worksheet B
Compare with the Sum from  Column A record Count in Worksheet C

If it differs than MsgBox "There is a record count difference for Todays Volunteer Intakes"
Avatar of Jacques Geday
Jacques Geday
Flag of Canada image

Try this formula in any cell. No need for VBA

=IF((COUNTA(A:A)*2+COUNTA(B!A:A))<>COUNTA('C'!A:A),"There is a record count difference for Todays Volunteer Intakes","Count Matcch")

Open in new window


gowflow
Avatar of upobDaPlaya
upobDaPlaya

ASKER

Unfortunately I need VBA as I need to add this check to an existing module.
SOLUTION
Avatar of Shums Faruk
Shums Faruk
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi
Hi..thx all.  Hopefully I was fair with the grading,.  I know I asked for VBA, but GoFlow made life easy with his formula.