I am trying to filldown formulas in a sheet. The code I am using is a recorded macro and it works fine until I connect it to a button. When I do so, it gives a
"Run Time Error '1004': Select method of Range Class failed"
Here is the code and I can see nothing wrong with it. When I hit debug it highlights the second line
Private Sub CommandButton2_Click()
Sheets("DB2 Totbel").Select
Range("B2:D2").Select
Selection.AutoFill Destination:=Range("B2:D15000"), Type:=xlFillDefault
Range("B2:D15000").Select