Have a worksheet that can have hideden columns in it. Would like to be able to sum only the visible cells in a row. Info below:
With VBA would like to:
~Sum Values in Range C4:AF4
~Place totals in Cell AH4
~Any one or more of the columns C to AF could be hidden.
~Sum in AH needs to reflect only Values of the visible cells.
Range("AJ4").Value = Application.Sum(Range("C4:AG4"))
-This works to get total. How can I add the part that only sums if not hidden? or Hidden - False?
With VBA would like to:
~Sum Values in Range C4:AF4
~Place totals in Cell AH4
~Any one or more of the columns C to AF could be hidden.
~Sum in AH needs to reflect only Values of the visible cells.
Range("AJ4").Value = Application.Sum(Range("C4:AG4"))
-This works to get total. How can I add the part that only sums if not hidden? or Hidden - False?