Can someone tell me what is wrong with this code?
The debug occurs though on the line:
..Cells.Select
Also - it appears your solution is exactly the same as mine. Am I missing
something small perhaps?
Thanks in advance.
"TH6" wrote:
You have a bad line break:
use
.Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
or
.Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks _
"Ant" wrote:
With Sheets("Sheet1")
.Cells.EntireColumn.AutoFit
.Cells.Select
.Selection.Copy
.Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
End With
|