[VBA ] 請問一下關於AutoFill 部分

看板Visual_Basic作者 (人生在世很愜意)時間9年前 (2015/02/13 16:39), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
Selection.AutoFill Destination:=Range(Cells(8, 3), Cells(8, 28)), Type:=xlFillDefault 這是我用Cells 寫 AutoFill 就編譯錯誤。 可是我這樣寫 SN = "C" + CStr(7 + 2 * i) + ":AB" + CStr(7 + 2 * i) Selection.AutoFill Destination:=Range(SN), Type:=xlFillDefault 就可以編譯,請問怎樣用Cells 寫AutoFill? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.130.129.3 ※ 文章網址: https://www.ptt.cc/bbs/Visual_Basic/M.1423816784.A.1FC.html

02/13 17:08, , 1F
錯誤訊息是啥?
02/13 17:08, 1F

02/17 12:54, , 2F
Range(Cells(8, 3).address, Cells(8, 28).address)
02/17 12:54, 2F
文章代碼(AID): #1KtRXG7y (Visual_Basic)