G Guest Jun 15, 2007 #1 I have a user input a range, how can I store the beginning cell of that range in a variable?
D Dave Peterson Jun 15, 2007 #2 Dim myRng as range dim myCell as range 'somewhat the user defines myRng set mycell = myrng.cells(1)
G Guest Jun 15, 2007 #3 Thanks. What about the last cell? Dave Peterson said: Dim myRng as range dim myCell as range 'somewhat the user defines myRng set mycell = myrng.cells(1) Click to expand...
Thanks. What about the last cell? Dave Peterson said: Dim myRng as range dim myCell as range 'somewhat the user defines myRng set mycell = myrng.cells(1) Click to expand...
D Dave Peterson Jun 15, 2007 #4 In a one area range: Dim myRng as range dim myCell as range 'somewhat the user defines myRng with myrng set mycell = .cells(.cells.count) end with with a multi-area range with myrng with .areas(.areas.count) set mycell = .cells(.cells.count) end with end with
In a one area range: Dim myRng as range dim myCell as range 'somewhat the user defines myRng with myrng set mycell = .cells(.cells.count) end with with a multi-area range with myrng with .areas(.areas.count) set mycell = .cells(.cells.count) end with end with