討論串[VBA ] Range Copy with offset
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者ClubT (在某種意義上 我應該很正)時間15年前 (2011/03/14 11:44), 編輯資訊
0
0
2
內容預覽:
只需一行就能做到. Dim LS,LE As String 'LS起始行 LE結束行. Dim rs,RE As Integer 'rs起始列 RE結束列. Worksheets(1).Range(LS + CStr(rs) + ":" + LE + CStr(RE)).Copy Destinati
(還有248個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者jonher (jonher)時間15年前 (2011/03/09 22:02), 編輯資訊
0
0
0
內容預覽:
Dim Cel As Range. Dim Rng As Range. Dim rr As Integer. Dim cc As Integer. Dim dx As Integer. Dim dy As Integer. rr = 3. cc = 2. dx = 1. dy = 4. Set Ce

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者nosrep (真相)時間15年前 (2011/03/09 20:41), 編輯資訊
0
0
0
內容預覽:
Hello,. 我想要將 sh1 B(x)-ED(x) 的Range拷貝到 sh2 某一欄,. 不過我 sh2 的位置可能會有offset,所以未必固定是從 B 開始,. 我會透過一個公式算出,差幾個 Column 開始 Copy. 在 VBA要怎麼達到?...還是我只能一個Cell去 Copy ?
(還有47個字)
首頁
上一頁
1
下一頁
尾頁