Forum Discussion
hrh_dash
Jun 07, 2022Iron Contributor
Why does my countifs vba returns 0 when the excel formula was previously populating the correct data
Why does my countifs vba returns 0 when the excel formula was previously populating the correct data? I am confused on where did it gone wrong. Sub CalculateCountifs()
Dim ws As Worksheet
...
- Jun 07, 2022
OliverScheurich , thank you for assisting. I am looking up data from another workbook from a different file path.
Tried the code that you have provided; had came up with an error:
Run-time error '6' Overflow.Are you able to code in a way whereby data is look up from another workbook from a different file path?
HansVogelaar
Jun 07, 2022MVP
I'd have to see the workbooks involved.
hrh_dash
Jun 07, 2022Iron Contributor
Went to take a relook at the data again and the code, restart the excel and everything seems to be populating the correct figures. thanks for the help again!