ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦³Ãö«ö¶sÁôÂøò¨ú®øÁôÂ꺰ÝÃD

¦^´_ 7# GBKEE

·PÁÂG¤jªº¦^ÂÐ~

½Ð°ÝG¤j¦pªG§Ú­n§ïÃC¦âªº¸Ü­n«ç»ò§ï©O? ¦³ÃC¦âªº»yªk¥i¥H¬d¸ß¶Ü?
¨Ò¦p§Ú­n²L¦Ç¦â¸ò²LÂŦâ

TOP

¦^´_ 6# ShaoQiang
  1. Private Sub CommandButton1_Click()
  2.     Dim Msg As Boolean
  3.     With Rows("25:41").EntireRow
  4.         .Hidden = IIf(.Hidden, False, True)
  5.         Msg = .Hidden
  6.     End With
  7.     With CommandButton1
  8.         .Caption = IIf(Msg, "Åã¥Ü", "ÁôÂÃ")
  9.         .BackColor = IIf(Msg, vbRed, vbBlue)
  10.         .ForeColor = IIf(Msg, vbBlack, vbWhite)
  11.     End With
  12. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ ShaoQiang ©ó 2014-11-22 00:15 ½s¿è

§Ú¤w¸g§ä¨ìµª®×¤F¡A¥Î¥H¤U³o¼Ë¼g´N¥i¥H¤F¡A©Î¥ÎGBKEE¤j¤jªº»yªk¥i¥H§óºë²
¦ý½Ð°Ý¤@¤U­n«ç»ò§ï«öÁ䪺ÃC¦â©O?
¨Ò¦p§Ú­n¦Ç¦â©Î¨ä¥¦ÃC¦â~­n¥h­þÃä§ä»yªk? (¥H¤Uªº®×¨Ò¬O¬õ¦â¸òÂŦâ)

Private Sub CommandButton1_Click()
' hide ¥¨¶°
    If Rows("25:41").EntireRow.Hidden = True Then
    CommandButton1.Caption = "ÁôÂÃ"
    CommandButton1.BackColor = vbBlue
        Rows("25:41").EntireRow.Hidden = False ' ¨ú®øÁôÂÃA2-A9      
    Else
    CommandButton1.Caption = "Åã¥Ü"
    CommandButton1.BackColor = vbRed
        Rows("25:41").EntireRow.Hidden = True ' ÁôÂÃA2-A9
    End If
End Sub

TOP

¦^´_ 3# GBKEE

GBKEE¤jªº»yªk¤]¦¨¥\¥i¥H¨Ï¥Î~«D±`·PÁÂ~:D

TOP

¦^´_ 2# PKKO

OK¦¨¥\¤F~~
¨º¦pªG¦bÁÙ¨SÁôÂîɥLªº«ö¶s·|Åã¥Ü"ÁôÂÃ"~~ÂI¿ïÁôÂëá«ö¶s·|Åã¥Ü"¨ú®øÁôÂÃ"
³o¼Ë­n«ç»ò§ï©O?

TOP

¦^´_ 2# PKKO
¥i²²¤¨Ç
  1. Private Sub CommandButton1_Click()
  2. ' hide ¥¨¶°
  3. ' ÁôÂÃA2-A9
  4.     With Rows("2:9")
  5.         .EntireRow.Hidden = IIf(.EntireRow.Hidden, False, True)
  6.     End With
  7. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 1# ShaoQiang

¸Õ¸Õ¬Ý
  1. Sub test()

  2. ' hide ¥¨¶°

  3.     If Rows("2:9").EntireRow.Hidden = True Then
  4.         Rows("2:9").EntireRow.Hidden = False ' ¨ú®øÁôÂÃA2-A9
  5.     Else
  6.         Rows("2:9").EntireRow.Hidden = True ' ÁôÂÃA2-A9
  7.     End If
  8. End Sub
½Æ»s¥N½X
PKKO

TOP

        ÀR«ä¦Û¦b : ¯u¥¿ªº·R¤ß¡A¬O·ÓÅU¦n¦Û¤vªº³oÁû¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD