Copy paste macro, finding a specific value?

I almost have this macro working but I get the following error message:

Information cannot be pasted because copy area and the paste area are not the same size.

Here is the macro:

Sub GetTotalRow()

'

Sheets("Summary").Select

Cells.Find(What:="Totals", After:=ActiveCell, LookIn:=xlFormulas, LookAt _

:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext).Copy

ActiveCell.EntireRow.Select

Selection.Copy

Sheets("Holiday").Select

Range("x2").Select

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _

xlNone, SkipBlanks:=False, Transpose:=False

Application.CutCopyMode = False

End Sub

Update:

I did not see all of your response. The word "Totals" will always appear in the row as well as values in the same row. Can you help me do a loop macro?

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.