Redefine UsedRange property of Worksheet Object
Hi
Say WorkingRange is the address as a string
For Each Cell In sh.Range(WorkingRange).cells
Next
--
Regards,
Sébastien
<http://www.ondemandanalysis.com
<http://www.ready-reports.com
"ExcelMonkey" wrote:
I am using the following code to loop through the UsedRange of worksheet:
For Each Cell In sh.UsedRange
I want to replace the .UsedRange property of the worksheet with a new range
via string variable called WorkingRange which has a new range address i it.
How do I do that?
Thanks
EM
|