ªð¦^¦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

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD