Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
maybe the following is what you're trying to do? Sub testit() Debug.Print "Result: ", Test(Range("test")) End Sub Function Test(retireDate As Range) Dim foo foo = retireDate.Name Test = foo End Function -- Regards Frank Kabel Frankfurt, Germany Lucifer wrote: I am trying to write a function that will take a different action based upon the name of a range passes to it. As I understand it the Range.Name returns a Name object. However, I can't get by the invalid use of Property Sub testit() Debug.Print "Result: ", Test(Range("Retire_Date_Primary")) End Sub Function Test(retireDate As Range) As Integer Dim foo As Name foo = retireDate.Name End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I pass series data x-value range to a chart from a cell? | Charts and Charting in Excel | |||
How to (re)set a range.value to pass -0- to a "double" variable | Excel Discussion (Misc queries) | |||
Pass string as Parameter in OpenText method | Excel Programming | |||
Can we Pass String to FieldInfo Array to OpenText Method. | Excel Programming | |||
Pass file name from Spreadsheet Range | Excel Programming |