RobBroekhuis
Technical User
Hi all,
This should be an easy one. I'm trying to pass a range variable dim'd in one sub to a second sub, using the following sections of code:
I get the error "Object required" whenever I try to run this. I've tried both ByVal and ByRef style argument passing. In the immediate window, I can confirm during debugging that typename(cell)="Range". Does this happen because the standard property of a range object is .value? How do I get around it?
Thanks for your help
Rob
This should be an easy one. I'm trying to pass a range variable dim'd in one sub to a second sub, using the following sections of code:
Code:
Sub FormatReference()
Dim cell As Range
For Each cell In Selection
FormatRefCell (cell)
Next cell
End Sub
Sub FormatRefCell(cell As Range)
...
End Sub
Thanks for your help
Rob