CurrentRegion needs to be used with a cell, like
Code:
--------------------
Sheet1.Cells(2, 1).CurrentRegion.Copy
--------------------
An alternative would be UsedRange, which refers to all the data stored
on a sheet
Code:
--------------------
Sheet1.UsedRange.Copy
--------------------
Tip: Highlight any words in the code, e.g CurrentRegion, in the
VB
Editor & press F1 to get help relevant to the selected term.
--
royUK
Hope that helps, RoyUK
For tips & examples visit my 'web site' (
http://www.excel-it.com/)
------------------------------------------------------------------------
royUK's Profile:
http://www.thecodecage.com/forumz/member.php?userid=15
View this thread:
http://www.thecodecage.com/forumz/sh...ad.php?t=95429