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

[µo°Ý] Lablel°j°éÅã¥Ü

¦pªþ¥ó
½Ð°Ý ¦³¨S¦³¿ìªk¥Î°j°éªº¤è¦¡¥h³B²z¨C¤@­ÓLabel.Caption
¦pªG¬OTextbox.value ¤]¬O¬Û¦Pªº³B²z¤è¦¡ ...
boyao µoªí©ó 2012-10-5 13:23
  1.     Private Sub UserForm_Activate()
  2.     Dim ctrl As Control
  3.     Dim cellStart As Range
  4.     Dim cellOffset As Integer
  5.     cellOffset = 0
  6.    
  7.     Set cellStart = Sheet1.Range("C5")
  8.    
  9.     For Each ctrl In Me.Controls
  10.         If TypeName(ctrl) = "Label" Then
  11.             ctrl.Caption = cellStart.Offset(cellOffset, 0) & " " & cellStart.Offset(cellOffset, 1).Value
  12.             cellOffset = cellOffset + 1
  13.         End If
  14.     Next
  15. End Sub
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

        ÀR«ä¦Û¦b : ¡i¬°µ½Ävª§¡j¤H¥Í­n¬°µ½Ävª§¡A¤À¬í¥²ª§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD