Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Min Function in excel VBA

Status
Not open for further replies.

vba317

Programmer
Mar 5, 2009
708
US
I am trying to define a minimum function with a compile error. I was hoping to get some help.

Here is my current code:

Code:
Dim LR As Long
Dim MN1 As Long
Dim MNV1 As Long
Dim MNV2 As Double
Dim MXV1 As Long
Dim MXV2 As Double

MNV2 = WorksheetFunction.Min (Range(Cells(MNV1, "D"), Cells(LR, "D")).Address(False, False) & ")
 



Hi,

No address...
Code:
MNV2 = WorksheetFunction.Min(Range(Cells(MNV1, "D"), Cells(LR, "D"))

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I tried your suggestion. I still get a compile error: Expected: list separator or )

Tom
 
MNV2 = WorksheetFunction.Min(Range(Cells(MNV1, "D"), Cells(LR, "D")))

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Just missing a )

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top