|
本帖最后由 hzruziniu 于 2018-8-6 17:17 编辑
- Sub yyyy()
- Application.ScreenUpdating = False
- Application.DisplayAlerts = False
- Dim i%, n%, m%
- For i = 1 To 33
- If Sheet1.OLEObjects("CheckBox" & i).Object.Value = True Then
- n = n + 1
- Cells(5, n + 2).Value = Format(i, "00")
- End If
- Next
- For i = 34 To 49
- If Sheet1.OLEObjects("CheckBox" & i).Object.Value = True Then
- m = m + 1
- Cells(6, m + 2).Value = Format(i - 33, "00")
- End If
- Next
- Application.ScreenUpdating = True
- Application.DisplayAlerts = True
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|