- 帖子
- 16
- 主題
- 2
- 精華
- 0
- 積分
- 66
- 點名
- 15
- 作業系統
- win7
- 軟體版本
- excel
- 閱讀權限
- 20
- 註冊時間
- 2016-8-24
- 最後登錄
- 2025-5-2
|
4#
發表於 2024-6-14 09:36
| 只看該作者
這種有規律的,再稍微推敲一下,可以得到公式
Sub test()
input_button = Cells(3, 9)
a = 2
a = input_button + (input_button * a)
c = 11
For b = 3 To 6
Cells(c, a) = Cells(b, 10)
Cells(18, a - 1) = Cells(3, 12)
Cells(19, a + 1) = Cells(5, 12)
c = c + 1
Next b
End Sub |
|