szakharov7723
Board Regular
- Joined
- Jun 22, 2018
- Messages
- 85
- Office Version
- 2019
- Platform
- Windows
VBA Code:
Sub Macro1()
'
Sheets("issue raw data").Select
Range("Table1[[#Headers],[Amount of matches]]").Select
highest = WorksheetFunction.Max(Selection)
answer = MsgBox(highest)
End Sub
So I have numbers like 1,2,3,4,5 in column, but for some reason it results in 0. I tried to add Dim as Integer or as Long, neither helped.
I suspect it may take whole column and treat blanks as higher value, otherwise I can't explain.
Please advise how to get a real Max value from column in table in VBA.
Later, I will use this Max value as Filter in columns, but it is further case.