Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Set a constant from a formula in VBA
I have now this:
Dim K As Long With Sheets("A") K = ( * here I want to have as k the result of the fomula =MAX(A:A).) How do I manage to take values from formulas rather than a specific cell? ,thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Set a constant from a formula in VBA
Dim K as double ' you sure you want Long???
with sheets("a") k = application.max(.range("a:a")) end with Ed wrote: I have now this: Dim K As Long With Sheets("A") K = ( * here I want to have as k the result of the fomula =MAX(A:A).) How do I manage to take values from formulas rather than a specific cell? ,thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Reusing formula | Excel Discussion (Misc queries) | |||
Excel displaying formulae as constant and not calculating formula | Excel Worksheet Functions | |||
Pasting constant formula where referral sheet changes | Excel Worksheet Functions | |||
Formula Constant | Excel Worksheet Functions | |||
Copy a formula maintaining a constant cell | Excel Worksheet Functions |