Hi,
I have a function which takes the worksheet target cell as an argument and I need to dynamically select a range of cells.
Basically I need to return a range of cells which starts one column to the right of target and is three columns wide.
For example, if target pointed to A1 then I need a range of cells from B3 to D3.
So far I have this:
which rather unhelpfully tells me there is an 'Application-defined or object-defined error'
Can anyone help?
Thanks
I have a function which takes the worksheet target cell as an argument and I need to dynamically select a range of cells.
Basically I need to return a range of cells which starts one column to the right of target and is three columns wide.
For example, if target pointed to A1 then I need a range of cells from B3 to D3.
So far I have this:
Code:
TargetCell.Offset(0, 1).Resize(0, 3)
Can anyone help?
Thanks