I have a set code that would perform copy and paste value. It's name COPYPASTE.
I like to call and run COPYPASTE for multiple sheets. Is there a way to bypass selecting every sheet and run COPYPASTE?
My code:
Sub CallCV()
Dim vAnswer As Variant
vAnswer = MsgBox("Proceed?", vbYesNo + vbDefaultButton2)
If vAnswer = 6 Then
Sheets("PL1").Select
COPYPASTE
Sheets("PL2").Select
COPYPASTE
Sheets("PL3").Select
COPYPASTE
Sheets("PL4").Select
COPYPASTE
Sheets("PL5").Select
COPYPASTE
Else
MsgBox "You picked No!"
End If
End Sub()
I like to call and run COPYPASTE for multiple sheets. Is there a way to bypass selecting every sheet and run COPYPASTE?
My code:
Sub CallCV()
Dim vAnswer As Variant
vAnswer = MsgBox("Proceed?", vbYesNo + vbDefaultButton2)
If vAnswer = 6 Then
Sheets("PL1").Select
COPYPASTE
Sheets("PL2").Select
COPYPASTE
Sheets("PL3").Select
COPYPASTE
Sheets("PL4").Select
COPYPASTE
Sheets("PL5").Select
COPYPASTE
Else
MsgBox "You picked No!"
End If
End Sub()