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

[µo°Ý] ¦bUserForm¤¤¡A³]©w¦h­ÓCommandButtonªºÃC¦â

[µo°Ý] ¦bUserForm¤¤¡A³]©w¦h­ÓCommandButtonªºÃC¦â

¥»©«³Ì«á¥Ñ av8d ©ó 2023-2-20 15:12 ½s¿è
  1. For i = 1 To 10
  2.     ActiveSheet.OLEObjects("CommandButton" & i).Object.BackColor = RGB(0, 0, 0)
  3. Next
½Æ»s¥N½X
¤W­z¬O¦bExcel¦Û­q¦h­Ó«ö¶sÃC¦â°j°é¡A½Ð°Ý¬O§_¥i¥H¹ê²{¦b¨Ï¥ÎUserForm¤¤©O¡HÁÂÁ«e½ú¡A§Ú¤]·|«ùÄò¦bºô¸ô¤¤´M§ä¸Ñµª¡C


§ä¨ì¤èªk¤F¡AÁÂÁ«e½ú­Ì©âªÅ¬d¬Ý¡A¸Ñµª¦p¤U
  1. For i = 1 To 10
  2.     Controls("CommandButton" & i).BackColor = RGB(0, 0, 0)
  3. Next
½Æ»s¥N½X

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD