Hi guys,
How do I pass a range to a function as a parameter?
Let's say I have the function
Function MyFunction(myRange as Range)
'Do something with myRange...
End Function
I tried as follows by it doesn't compile.
MyFunction( Sheets(DataSheet).Range("B5:C9") )
MyFunction( "DataSheet!$B$5:$C$9" )
Thanks in advance for any help.
Aldo.