- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
¨âªÌ¬Ò¥i- Sub ½T©w_Click()
- Dim E As Shape, Rng As Range
- Sheet2.UsedRange.Offset(1).Clear
- Set Rng = Sheet2.UsedRange.Cells(2, 1)
- For Each E In Sheet1.Shapes
- If E.Type = msoFormControl And E.Name Like "Check Box*" Then
- If E.OLEFormat.Object.Value = 1 Then
- Rng.Offset(, 0) = E.TopLeftCell.Offset(, 1).Value
- Rng.Offset(, 1) = E.TopLeftCell.Offset(, 2).Value
- Rng.Offset(, 2) = E.TopLeftCell.Offset(, 5).Value
- Rng.Offset(, 3) = E.TopLeftCell.Offset(, 7).Value
- Set Rng = Rng.Offset(1)
- End If
- End If
- Next
- End Sub
½Æ»s¥N½X- Sub ½T©w_Click()
- Dim E As Shape, Rng As Range
- Sheet2.UsedRange.Offset(1).Clear
- Set Rng = Sheet2.UsedRange.Cells(2, 1)
- For Each E In Sheet1.Shapes
- If E.Type = msoFormControl And E.Name Like "Check Box*" Then
- If E.OLEFormat.Object.Value = 1 Then
- With E.TopLeftCell
- Rng.Resize(, 4) = Array(.Offset(, 1).Value, .Offset(, 2).Value, .Offset(, 5).Value, .Offset(, 7).Value)
- End With
- Set Rng = Rng.Offset(1)
- End If
- End If
- Next
- End Sub
½Æ»s¥N½X |
|