Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
nSum = 0
For Each cell In ActiveSheet.UsedRange
If cell.Columns.Hidden = True Then
nSum = nSum + cell.Value
End If
Next
MsgBox nSum
Function hiddensum(ByVal target As Excel.Range)
nsum = 0
For Each cell In target
If cell.Columns.Hidden = True Then
nsum = nsum + cell.Value
End If
Next
hiddensum = nsum
End Function
Sub insert_forumla()
Range("J10").Select
ActiveCell.FormulaR1C1 = "=hiddensum(RC[-5]:RC[-3])+NOW()*0"
Range("J11").Select
End Sub