What is the syntax to find the maximum between two numbers?

<variable to hold maximum> = WorksheetFunction.Max(<num1>, <num2>)
#example 
maxValue= WorksheetFunction.Max(100, Sheets("eg").Cells(1,1).value)
Advertisements