Looks like innocuous code to me - and it works fine and dandy in Excel 2003...
Sheet1.Columns("A:" & lastcol).Copy
Sheet2.Columns("A:" & lastcol).PasteSpecial xlPasteValuesAndNumberFormats, SkipBlanks:=True
Where lastcol has been set at 'AZ' or similar
This is a really small sheet being copied (<20 rows) but there is an auto-filter reducing the lines down to 5 or so.
In 2007, I get an 'Out of resources' error.
Any ideas why - or better still, a simple way of achieving the same end.
Cheers for any advice given.
Sheet1.Columns("A:" & lastcol).Copy
Sheet2.Columns("A:" & lastcol).PasteSpecial xlPasteValuesAndNumberFormats, SkipBlanks:=True
Where lastcol has been set at 'AZ' or similar
This is a really small sheet being copied (<20 rows) but there is an auto-filter reducing the lines down to 5 or so.
In 2007, I get an 'Out of resources' error.
Any ideas why - or better still, a simple way of achieving the same end.
Cheers for any advice given.