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

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

¦^´_ 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¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD