Excel VBA “Autofill Method of Range Class Failed”

后端 未结 4 878
醉梦人生
醉梦人生 2020-12-16 22:28

The following VBA code (Excel 2007) is failing with Error 1004, \"Autofill Method of Range Class Failed.\". Can anyone tell me how to fix it?

Dim src As Ran         


        
4条回答
  •  [愿得一人]
    2020-12-16 22:50

    To make AutoFill work, you need to make the range of AutoFill more than the source range. If the AutoFill range is same as of Source range then there is nothing to AutoFill in that range and hence you would get an error

    1004: AutoFill method of Range class failed.

    So make AutoFill range more than the source range and error will gone.

提交回复
热议问题