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

[¤À¨É] excel 2007 shaperange µLªk¥Î shape type for each

[¤À¨É] excel 2007 shaperange µLªk¥Î shape type for each

Dim h_shape As Shape
Dim h_shaperange As ShapeRange

Set h_shaperange = Selection.ShapeRange

For Each h_shape in h_shaperange
       ........
Next

¤W­±ªºµ{¦¡¦bexcel 2003¨S¦³°ÝÃD¡A¦ý¬O¦bexcel 2007¡A
h_shape ·|¬O nothing ¡AµLªk¦¬¨ì shaperange ¸Ìªº shape
¥Ø«eª¾¹Dªº¤èªk¬O§â h_shape «Å§i¦¨ Object ´N¥i¥H¡A¦p¤U
Dim h_shape As Object

¥t¥~°Ý­Ó°ÝÃD¡A¦p¦ó§@«¬ºAÂàÅÜ
§â Object ¦bÅܦ^ Shape?

¦^´_ 2# kimbal

·|³o»ò°Ý¬O¦]¬°§â Option Explicit¡A
¦pªG§â«Å§i¦¨ Object ªº shape ·í¨ä¥L sub routine ªº¤Þ¼Æ(shape) ·|¦³¿ù»~¡A
¤£·Q¦]¬°³o­Óbug§â¨ä¥L¤w¸g¼g¦nªº Sub routine ªº As Shape ³£§ï¦¨ As Object¡A
¤£ª¾³o­Ó bug ¦³¨S¦³ patch release?
ÁÂÁ¡C

BR,
Jarod

TOP

Dim h_shape As Shape
Dim h_shaperange As ShapeRange

Set h_shaperange = Selection.ShapeRange

F ...
jarodz µoªí©ó 2012-1-9 01:58


³o­Ó¬Û«H¬O 2007 ªº¤@­Óbug,
2010 ¤w¸g­×¥¿¤F.

object¹ê»Ú¤W¤]Âà´«¤F¬°shape
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

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

TOP

        ÀR«ä¦Û¦b : ¡i¬O§_µo´§¤F¨}¯à¡H¡j¤H¶¡¹Ø©R¦]¬°µu¼È¡A¤~§óÅã±o¬Ã¶Q¡CÃø±o¨Ó¤@½ë¤H¶¡¡AÀ³°Ý¬O§_¬°¤H¶¡µo´§¤F¦Û¤vªº¨}¯à¡A¦Ó¤£­n¤@¨ý¨Dªø¹Ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD