Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Given a NAMED range called "Sheet1_Table" that refers to "Sheet1!e1:h4" and
the value "Sheet1_Table" in cell C1, how can I get the following VBA function: Function say_what(ByRef input_arg As Variant) As Variant If TypeName(input_arg) = "Range" Then say_what = input_arg.Rows.Count & " by " & input_arg.Columns.Count Else say_what = TypeName(input_arg) End If End Function to return the same result for =say_what( indirect(c1) ) and =say_what( c1 )? say_what( indirect(c1) ) returns a correct "4 by 4" but say_what( c1 ) returns an incorrect "1 by 1". Thank you, How can I get |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In Excel how do I delete or change the name of a range of cells? | Excel Discussion (Misc queries) | |||
Is there a way to average if in excel when looking at a range of d | Excel Worksheet Functions | |||
Excel Page Range Printing Problems | Excel Discussion (Misc queries) | |||
combo box named range | Excel Discussion (Misc queries) | |||
dynamic range for excel chart | Excel Discussion (Misc queries) |