- ©«¤l
- 80
- ¥DÃD
- 27
- ºëµØ
- 0
- ¿n¤À
- 108
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-6
- ³Ì«áµn¿ý
- 2012-8-23
|
¥»©«³Ì«á¥Ñ caichen3 ©ó 2012-3-28 22:04 ½s¿è
½Ð°Ý¤j¤j¡G
¥Î Ex ªºµ{¦¡½Õ¾ã«á¦A°õ¦æ§AªºPrivate Sub CommandButton5_Click() EX( )³o¬qµ{¦¡·|¸Ó©ñ¦bþ¸Ì©O¡H¬OPrivate Sub CommandButton5_Click()¸Ì±¤@¶}©lªº¦a¤è¶Ü¡H
±µ¤U¨Ó¦bPrivate Sub CommandButton5_Click()µ{¦¡³Ì«á±ªº¦a¤è¦b°õ¦æ¤@¦¸EX( ) ³o¬qµ{¦¡¶Ü¡H¡H
§Ú¹Á¸Õ©ñ¦bCommandButton5_Click()µ{¦¡½X«e»P«á±¡AÁÙ¬OµLªk¥i¥HÀ°§Ú¬Ý¤@¤U¶Ü¡A·PÁÂ:)
Private Sub CommandButton5_Click()
Dim yyy As String
Dim xxx As String
Dim k As Integer
Dim ob As OLEObject
gyou = Selection.Row
ActiveSheet.Rows(gyou).ClearContents
Range("I1").Value = Range("I1").Value - 1
TMMPA = Range("I1").Value
aaa = Chr(65)
ccc = Chr(67)
For I = 2 To 100
xxx = I
Range(aaa + xxx).Value = ("")
Range(ccc + xxx).Value = ("")
Next
ActiveSheet.Range("A2:H200").Borders.LineStyle = XILinestyleNone
ActiveSheet.Range("A2:H200").Interior.ColorIndex = xlColorIndexNone
For R = 1 To TMMPA
yyy = R + 1
Range(aaa + yyy).Value = R
Range(ccc + yyy).Value = R
Next
ActiveSheet.Range("A2:H" + yyy).Borders.LineStyle = xlContinuous
ActiveSheet.Range("A2:H" + yyy).Borders(xlEdgeBottom).Weight = xlThick
ActiveSheet.Range("A2:H" + yyy).Borders(xlEdgeRight).Weight = xlThick
ActiveSheet.Range("A2:H" + yyy).Borders(xlEdgeLeft).Weight = xlThick
ActiveSheet.Range("A2:A" + yyy).Interior.ColorIndex = 15
k = gyou - 1
For Each ob In ActiveSheet.OLEObjects
If ob.Name Like "OptionButton*" Then
If ob.Object.GroupName = k Then ob.Delete
End If
Next
Cells(gyou, 1).Resize(, 8).Delete xlShiftUp
For Each ob In ActiveSheet.OLEObjects
If ob.Name Like "OptionButton*" Then
ob.Object.GroupName = ob.TopLeftCell.Row
End If
Next
End Sub |
|