Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
minimum value
I want to save the minimum value of column B at "d"
So i define. ============== Dim d As Long d="=MIN($B:$B)" ================ However, it doesn't work. How can I save the number? I can print it on a cell (for example, Cells(1,1)="=MIN($B:$B)" ) Thx''' |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
minimum value
Hi,
Are you wanting to assign the minimum value to the variable "d?" d = WorksheetFunction.Min(Columns("B")) HTH -- Ken Hudson "kirke" wrote: I want to save the minimum value of column B at "d" So i define. ============== Dim d As Long d="=MIN($B:$B)" ================ However, it doesn't work. How can I save the number? I can print it on a cell (for example, Cells(1,1)="=MIN($B:$B)" ) Thx''' |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
minimum value
You cannot use a worksheet function directly in VBA, but you can call it as
part of the application object d = Application.MIN(Range("B:B")) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "kirke" wrote in message oups.com... I want to save the minimum value of column B at "d" So i define. ============== Dim d As Long d="=MIN($B:$B)" ================ However, it doesn't work. How can I save the number? I can print it on a cell (for example, Cells(1,1)="=MIN($B:$B)" ) Thx''' |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Minimum value look up | Excel Worksheet Functions | |||
minimum and the corresponding value | Excel Worksheet Functions | |||
Minimum Value | Excel Worksheet Functions | |||
How to lookup the minimum, 2nd minimum and 3rd minimum......... | Excel Worksheet Functions | |||
Minimum but One?? | Excel Worksheet Functions |