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

[µo°Ý] ¤u§@ªí¤¤ªº¦h±i¹Ï¤ù¦p¦ó¾Þ±±¡H

[µo°Ý] ¤u§@ªí¤¤ªº¦h±i¹Ï¤ù¦p¦ó¾Þ±±¡H

¤u§@ªí¤¤¦s¦b¦h±i¹Ï¤ù ¥Ø«e¦³´X¶µ¾Þ±±¹Ï¤ùªº»Ý¨D
¤À§O¬O§R°£¡B·s¼W¥H¤Î¹ï½Õ¹Ï¤ù
¸Ó¥Î¦ó¨ç¼Æ©Î¤èªk¨Ó«ü©w¯S©wªº¹Ï¤ù¡H
¥H¤U¬O§Ú¥Î¿ý»s±oª¾ªº¤èªk ¦ý¶i¤@¨B¾Þ±±®É³£·|µo¥Í¿ù»~
ActiveSheet.Shapes.Range(Array("Picture 2"))
½Ð°ª¤â«ü±Ð
HELLO !!

¦^´_ 1# baconbacons
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim p As Pictures, S(1 To 2) As Picture, C(1 To 4)
  4.     Set p = ActiveSheet.Pictures
  5.     p.Delete
  6.     '§R°£©Ò¦³¬Û¤ù
  7.    
  8.     Set S(1) = p.Insert("C:\Documents and Settings\hsuA\My Documents\My Pictures\EX.JPG")
  9.     '·s¼W
  10.     With S(1)  '³]©w
  11.         .Left = [C10].Left
  12.         C(1) = .Left
  13.         .Top = [C10].Top
  14.         C(2) = .Top
  15.         .Width = [C10:F10].Width
  16.         C(3) = .Width
  17.         .Height = [C10:C15].Height
  18.         C(4) = .Height
  19.     End With
  20.    
  21.     Set S(2) = p.Insert("C:\Documents and Settings\hsuA\My Documents\My Pictures\EX1.JPG")
  22.     With S(2)
  23.         .Left = [H10].Left
  24.         .Top = [H10].Top
  25.         .Width = [H10:K10].Width
  26.         .Height = [H10:K15].Height
  27.     End With
  28.    
  29.     '**********¹ï½Õ
  30.     With S(1)
  31.         .Left = S(2).Left
  32.         .Top = S(2).Top
  33.         .Width = S(2).Width
  34.         .Height = S(2).Height
  35.     End With
  36.     With S(2)
  37.         .Left = C(1)
  38.         .Top = C(2)
  39.         .Width = C(3)
  40.         .Height = C(4)
  41.     End With        
  42. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# GBKEE
GBKEE¤j¡G
½Ð±Ð´X­Ó°ÝÃD¡Apictures ¤]¥i¥H¬O¸ê®Æ«¬ºA¶Ü¡H
²Ä¤T¦æµ{¦¡½X¡GC(1 To 4)ªº«á¤è¬O¤£¬OÀ³¸Ó¥[¤J¡uAs Picture¡v¡H
S(1 To 2) ¥H¤Î C(1 To 4) ªº·N«ä¬O§_¬°°}¦CSªº2±i¬Û¤ù¡B°}¦CCªº4±i¬Û¤ù¡H
¨º¤U¦Cµ{¦¡½Xªº·N«ä¬O§_¬°¬Û¤ùS(1)ªº¥ª¡B¤W¦ì¸m¥H[C10]¬°·Ç¡A°ª¥H[C10:C15]¡A¼e¥H[C10:F10]¬°·Ç
¬Û¤ùC(1)ªº¥ª¦ì¸m»PS(1)¡A¬Û¤ùC(2)ªº¤W¦ì¸m»PS(1)¡A¬Û¤ùC(3)¼e«×»PS(1)¡A¬Û¤ùC(4)°ª«×»PS(1)¬Û¦P
¦pªG¬O³o¼Ëªº¸Ü¡A§ÚµLªk²z¸Ñ¡A¦]¬°°õ¦æ°_¨Ó¦n¹³¦³ÂI°ÝÃD¡K
    With S(1)  '³]©w
        .Left = [C10].Left
        C(1) = .Left
        .Top = [C10].Top
        C(2) = .Top
        .Width = [C10:F10].Width
        C(3) = .Width
        .Height = [C10:C15].Height
        C(4) = .Height
    End With

§Ú¦A±N§Úªº·Qªkªí¹F§ó²M·¡¤@ÂIªº¸Ü¡K
§Ú¦pªG·Q­n§R°£¸Ó¤u§@ªí¤¤ªº²Ä27±i¬Û¤ù©Î¬O
·s¼W²Ä39±i¬Û¤ù©Î¬O
±N²Ä51±i¬Û¤ù»P²Ä54±i¬Û¤ù¹ï½Õ
¸Ó¦p¦ó¾Þ§@
HELLO !!

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-4-24 05:59 ½s¿è

¦^´_ 3# baconbacons
  1. Option Explicit
  2. Sub Ex()
  3.     Dim S As Pictures, C(1 To 4) As Single
  4.     'Single ¸ê®Æ«¬ºA Single (³æºë«×¯BÂI¼Æ) ÅܼƫY¥H IEEE 32 ¦ì¤¸ (4 ­Ó¦ì¤¸²Õ)¯BÂI¼Æ¦rªº§Î¦¡Àx¦s¡A
  5.     '¥¦ªº½d³ò¦b­t¼Æªº®É­Ô¬O±q -3.402823E38 ¨ì -1.401298E-45¡A¦Ó¦b¥¿¼Æªº®É­Ô¬O±q 1.401298E-45 ¨ì 3.402823E38¡CSingle ªº«¬ºA«Å§i¦r¤¸¬° !¡C
  6.    
  7.     Set S = ActiveSheet.Pictures 'Pictures :·Ó¤ùª«¥óªº¶°¦X
  8.     MsgBox S.Count
  9.    
  10.     '§Ú¦pªG·Q­n§R°£¸Ó¤u§@ªí¤¤ªº²Ä27±i¬Û¤ù
  11.     S(27).Delete
  12.    
  13.     '·s¼W²Ä39±i¬Û¤ù
  14.     '°Ñ¦Ò http://forum.twbts.com/thread-11828-1-1.html
  15.    
  16.     '±N²Ä51±i¬Û¤ù»P²Ä54±i¬Û¤ù¹ï½Õ
  17.     With S(54)                   '·Ó¤ùª«¥óªº¶°¦Xªº²Ä54±i·Ó¤ù
  18.         C(1) = .Left            'C(1)->Ū¨ú²Ä54±i·Ó¤ùªºLeft¼Æ­È
  19.         C(2) = .Top             'C(2)->Ū¨ú²Ä54±i·Ó¤ùªºTop¼Æ­È
  20.         C(3) = .Width           'C(3)->Ū¨ú²Ä54±i·Ó¤ùªºWidth¼Æ­È
  21.         C(4) = .Height          'C(4)->Ū¨ú²Ä54±i·Ó¤ùªºHeight¼Æ­È
  22.         .Left = S(51).Left      'Left³]©w²Ä51±i·Ó¤ùªºLeft
  23.         .Top = S(51).Top        'Top³]©w²Ä51±i·Ó¤ùªºTop
  24.         .Width = S(51).Width    'Width³]©w²Ä51±i·Ó¤ùªºWidth
  25.         .Height = S(51).Height  'Height³]©w²Ä51±i·Ó¤ùªºHeight
  26.     End With
  27.     With S(51)                  '·Ó¤ùª«¥óªº¶°¦Xªº²Ä51±i·Ó¤ù
  28.         .Left = C(1)            'Left¼Æ­È¬° C(1) ,S(54)¥ý«eªºLeft
  29.         .Top = C(2)             'Top¼Æ­È¬° C(2) ,S(54)¥ý«eªºTop
  30.         .Width = C(3)           'Width¼Æ­È¬° C(3) ,S(54)¥ý«eªºWidth
  31.         .Height = C(4)          'Height¼Æ­È¬° C(4) ,S(54)¥ý«eªºHeight
  32.     End With
  33. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¤H¥Í³Ì¤jªº¦¨´N¬O±q¥¢±Ñ¤¤¯¸°_¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD