Count cells from multiple columns that contain value

Macro Title:
Worksheet Variable:
Worksheet Name:
Column References:
enter the column references from which you want to count the number of cells that contain a value
Output Cell:
First Comment:

'
Second Comment:

'
Sub Count_cells_from_multiple_columns_that_contain_value()
'declare a variable
Dim ws As Worksheet
Set ws = Worksheets("Analysis")
'count the number of cells from multiple columns that have a value
ws.Range("F5") = Application.WorksheetFunction.CountA(ws.Range("C:D"))

End Sub

Sub Count_cells_from_multiple_columns_that_contain_value()
'declare a variable

Dim ws As Worksheet

Set ws = Worksheets("Analysis")
'count the number of cells from multiple columns that have a value

ws.Range("F5") = Application.WorksheetFunction.CountA(ws.Range("C:D"))

End Sub

Sub Count_cells_from_multiple_columns_that_contain_value()
'declare a variable
Dim ws As Worksheet
Set ws = Worksheets("Analysis")
'count the number of cells from multiple columns that have a value
ws.Range("F5") = Application.WorksheetFunction.CountA(ws.Range("C:D"))

End Sub