I need to add code to a macro to copy and paste a block of cells that include hidden rows of data, sample code
Selection.SpecialCells(x1CelltypeVisible).Select
Copy Range(A4:B10).select
Application.CutCopyMode=False
Range(A4:B10).select
Selection.PasteSpecial Paste:=x1PasteValues, Operation:=x1None, SkipBlanks := False, Transpose:=False
Application.CutCopyMode:=False
Error is:
Fails because copy and paste areas are not the same size
Selection.SpecialCells(x1CelltypeVisible).Select
Copy Range(A4:B10).select
Application.CutCopyMode=False
Range(A4:B10).select
Selection.PasteSpecial Paste:=x1PasteValues, Operation:=x1None, SkipBlanks := False, Transpose:=False
Application.CutCopyMode:=False
Error is:
Fails because copy and paste areas are not the same size