看板 Visual_Basic 關於我們 聯絡資訊
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
ClubT: 錯誤訊息是啥? 02/13 17:08
Catbert: Range(Cells(8, 3).address, Cells(8, 28).address) 02/17 12:54