Excel AutoFill problem
问题 I'm having problems with a VBA script. The function fills in a sheet with some formulas. It works fine most of the time, however when I run it on a larger data set... it crashes with: Run-time error '1004': AutoFill method of Range class failed The debugger points to the last AutoFill call. When I look at the sheet, it seems that the AutoFill call worked about 3/4 of the way but stops. With Sheets("OPENS") ' Fill OPENS formulas .Range("B" & firstRowOPENS - 3) = "=DATE(YEAR($B$1), MONTH($B$1)