Jagwarman
asked on
VBA RowTo .... stop it from going to end
I have the folowing code that will copy data from one sheet to another but when there is no data to copy it falls over and tell me Excel can not continue with available resources
WS.Range(RowFM & ":" & RowTO).EntireRow.Copy WSCopy.Cells(MaxRowCopy, "A")
When I hover over RowTo it tells me it returns 1048576
How do I stop it from falling over and trying to go to 1048576
Thanks
WS.Range(RowFM & ":" & RowTO).EntireRow.Copy WSCopy.Cells(MaxRowCopy, "A")
When I hover over RowTo it tells me it returns 1048576
How do I stop it from falling over and trying to go to 1048576
Thanks
How do you calculate RowTo?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How is RowTO defined ?
Open in new window
Regards