Returns the maximum value of two numbers. See also the Min function.
Max (number1, number2)
Number1 - (Input, expression, Required)
Number2 - (Input, expression, Required)
If a string is passed, it is first converted to numeric form. If a non-numeric value is passed, Error is returned.
The maximum of the two values.
| 
                         Max (1, 2)  | 
                    
                         Returns 2  | 
                
| 
                         Max (-1, -2)  | 
                    
                         Returns -1  | 
                
| 
                         Max (“-3.4”, -3.3)  | 
                    
                         Returns –3.3  | 
                
| 
                         Max (Null, 1)  | 
                    
                         Returns Error  | 
                
| 
                         Max (Error, 1)  | 
                    
                         Returns Error  | 
                
Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.
Abs function | Atn function | Cos function | Exp function | Fix function | Int function | Log function | Max function | Min function | Rnd function | Round function | Sgn function | Sin function | Sqr function | Tan function 
© 2004-2021 looksoftware. All rights reserved.