The cell with the function name in it is optional. You can also just name the first ARGUMENT() function
Any cell not starting with an equals sign is treated as comment
--
Kind regards,
Niek Otten
Microsoft MVP - Excel
| Of course the Bold effect doesn't show here.
| As you may have guessed, the function names are
|
| MaxVan2
| MinVan2
| Termijnf
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
|| You just need to name the first cell.
||
|| You can have many functions on one sheet.
||
|| Here's an example, the bold cells have names like their contents.
|| I use named arguments; you can use cell references instead.
|| In Excel 2007 you would need longer variable names to avoid confusion with cell references.
|| I happened to use R1C1 references, but you can use A1 references if you prefer that (you probably do!)
||
||
|| --
|| Kind regards,
||
|| Niek Otten
|| Microsoft MVP - Excel
||
||
|| MaxVan2
|| =ARGUMENT("zv1")
|| =ARGUMENT("zv2")
|| =MAX(zv1,zv2)
|| =RETURN(R[-1]C)
|| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|| MinVan2
|| =ARGUMENT("zv1")
|| =ARGUMENT("zv2")
|| =MIN(zv1,zv2)
|| =RETURN(R[-1]C)
|| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|| Termijnf
|| =ARGUMENT("aantprem")
|| =VLOOKUP(AantPrem,TermijncodeTab,2,FALSE)
|| =RETURN(R[-1]C)
|| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
||
||
||
||
||| Thanks for the suggestions.
|||
||| Just to clarify, do I need to select the whole range of the macro sheet with the XLM macro, and name that, or just the first
|| cell. Also, is there a specific start line that I need for a macro, or just begin with the first function?
||
||
|
|