Hi,
In sheet1 I have cell range as indicated below which will need to be copied and pasted to sheet2 at different range given below.
It does not work at all. Every time I click , it only copies last cell in range and pastes it everywhere.
I have some formule in them. I want only the VALUE to be copied and pasted .
Any help is appreciated please.
I am using form control button and assigning this macro to it.
Regards
Sub test()
Dim cl As Range
'Turn off screen flashing for speed
Application.ScreenUpdating = False
For Each cl In Worksheets("sheet1").Range("A2:I45","L2:L45","M2:M45")
If cl.Value <> False Then
cl.Copy
Worksheets("sheet2").Range("C14:J57","L14:L57","M14:M57").PasteSpecial Paste:=xlValue
End If
Next cl
'Resume screen updates
Application.ScreenUpdating = True
End Sub
This has been cross referred to http://www.mrexcel.com/forum/excel-questions/698929-copy-paste-selected-cell-range-another-sheet.html
Bookmarks