I'm pulling my hair (what's left of it) out over this stupid little idea!
I'm trying to add a dataset to the last available row, all works fine. Then I want to select the row and place a border around it.
I can do it statically with:
But it just won't do it dynamically with:
I can't see what's wrong, any idea's? Obviously these are only the relevant code snippets, the rest is mundane and working fine.
Steve
I'm trying to add a dataset to the last available row, all works fine. Then I want to select the row and place a border around it.
I can do it statically with:
Code:
ActiveSheet.Range("C1:F4").Select
But it just won't do it dynamically with:
Code:
Dim ws, iRow
Set ws = Sheets("Sheet1")
iRow = ws.Cells(Rows.Count, 1).End(xlUp).Row + 1
ActiveSheet.Range("A" & iRow & ":F" & iRow & ").Select
I can't see what's wrong, any idea's? Obviously these are only the relevant code snippets, the rest is mundane and working fine.
Steve