Hi,
I'm having difficulty and am receiving an error when I launch a macros that I've embedded into a button on VBA. I created a control button and attached the macro. When I use the control button I get run time error 1004 with the message that says "Select method of range class failed."
Here's the code: (the error occurs on the {"Range ("A2").Select} line_
Private Sub CommandButton2_Click()
'
'Button226_Click Macro
'
'Keyboard Shortcut: Ctrl Shift + J
'
Range("C2").Select
Selection.Copy
Sheets("Recommendations").Select
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Decision Matrix").Select
ActiveWindow.SmallScroll Down:=27
Range("G55").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Recommendations").Select
Range("B2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Decision Matrix").Select
Range("H55").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Recommendations").Select
Range("E2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Can anyone help?
Thank you!
Bookmarks