S.H.A.D.O.
Well-known Member
- Joined
- Sep 6, 2005
- Messages
- 1,915
Good evening,
I have a program that uses the line of code ...
... which works great.
However, when I highlight and delete "x" number of cells and re-run the program it does not recognise the fact that there are less cells with numbers in and gives me the wrong answer.
I have tried to adapt this particular line using DCOUNT & COUNTA etc but without any success.
Has anyone got any ideas please?
Thanks in advance.
I have a program that uses the line of code ...
Code:
For Each TotalToCheck In Range(Cells(8, 14), Cells(Rows.Count, 14).End(xlUp))
... which works great.
However, when I highlight and delete "x" number of cells and re-run the program it does not recognise the fact that there are less cells with numbers in and gives me the wrong answer.
I have tried to adapt this particular line using DCOUNT & COUNTA etc but without any success.
Has anyone got any ideas please?
Thanks in advance.