Mar 29, 2002 #1 rambob Programmer Feb 25, 2002 8 US I'm trying to use the EXCEL function, MIN in a macro. I use the exact syntax from HELP but it still errs. The syntax I'm using is, myValue = MIN(B59:B71) The error I get is, "Compile Error, Expected: list separator or )". Can anybody help?
I'm trying to use the EXCEL function, MIN in a macro. I use the exact syntax from HELP but it still errs. The syntax I'm using is, myValue = MIN(B59:B71) The error I get is, "Compile Error, Expected: list separator or )". Can anybody help?
Mar 29, 2002 #2 acron MIS Oct 19, 2001 476 IE What you are using is the Syntax for the function as used in a worksheet. The correct VBA syntax is : myValue = Application.WorksheetFunction.Min(Range("B1:B71") Tahnkfully than can be abreviated using a shortcut for the evaluate method : myValue = [Min(B1:B40)] A.C. Upvote 0 Downvote
What you are using is the Syntax for the function as used in a worksheet. The correct VBA syntax is : myValue = Application.WorksheetFunction.Min(Range("B1:B71") Tahnkfully than can be abreviated using a shortcut for the evaluate method : myValue = [Min(B1:B40)] A.C.
Mar 29, 2002 #3 acron MIS Oct 19, 2001 476 IE What you are using is the Syntax for the function as used in a worksheet. The correct VBA syntax is : myValue = Application.WorksheetFunction.Min(Range("B1:B71") Tahnkfully than can be abreviated using a shortcut for the evaluate method : myValue = [Min(B1:B71)] A.C. Upvote 0 Downvote
What you are using is the Syntax for the function as used in a worksheet. The correct VBA syntax is : myValue = Application.WorksheetFunction.Min(Range("B1:B71") Tahnkfully than can be abreviated using a shortcut for the evaluate method : myValue = [Min(B1:B71)] A.C.
Mar 29, 2002 Thread starter #4 rambob Programmer Feb 25, 2002 8 US Acron, Thanks very much...that worked like a charm! Upvote 0 Downvote