Svgmassive
Board Regular
- Joined
- Nov 2, 2010
- Messages
- 113
I want to create a name range WK_Col which would be column a to use in formula (vba) what's the best approach.Thanks
Dim rng As Range
Set rng = Range([Wk_Col].Cells(5), [Wk_Col].Cells(8))
Or even this...Maybe this
Code:Dim rng As Range Set rng = Range([Wk_Col].Cells(5), [Wk_Col].Cells(8))
Set Rng = [Wk_Col].Rows("5:8")
Or even this...
Code:Set Rng = [Wk_Col].Rows("5:8")
That i understand. The problem is this.I have a name range call Wk_Col which references =Sheet1!$A:$A.the problem is this when i reference a range in vba
Range(Cells(5, [Wk_Col].column), Cells(8, [Wk_Col].Column)) i have to use the [Wk_Col].Column instead of just [Wk_Col].
thanks