I would like to programmatically get the range for the enitre active worksheet. Manually I can see it is ("A1:IR65523") but how do I get it programmatically
Thanks
Chris
I would like to programmatically get the range for the enitre active worksheet. Manually I can see it is ("A1:IR65523") but how do I get it programmatically
Thanks
Chris
[vba]
Set rng = Activesheet.Usedrange
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Great, that solved the problem.
How come when i type "ActiveSheet." intisence does not show anything in my vba editor?
Chris
Activesheet is an instance of Sheet, which can be a Worksheet, it can be a Chart, etc. Only worksheets have UsedsRange, so it won't show as a property of Sheet.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber