Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to define something like:
function mycell(ref) mycell = range(ref).something end function That works if I call it from a spreadsheet formula in the form mycell("A1"). But I want to call it in the form mycell(A1) -- no quotes -- so that mycell() is recomputed if A1 changes. How can I do that? That is, how do I declare "ref", and/or how do I pass A1 so that it can be used in the VBA range() function, without passing "A1" as a string? Note: I am using Office Excel 2003, if that matters. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to pass variables as arguments of a function | Excel Worksheet Functions | |||
Pass function as argument to UDF | Excel Programming | |||
pass cell value as string to function | Excel Programming | |||
How to pass sheet reference to a procedure | Excel Programming | |||
How do I pass a worksheets name to function? | Excel Programming |