Forum Discussion

hrh_dash's avatar
hrh_dash
Iron Contributor
Jun 07, 2022
Solved

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 ...
  • hrh_dash's avatar
    hrh_dash
    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?

     

     

Resources