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

[µo°Ý] ½Ð°Ý¸Ó¦p¦óÅܧó¤u§@ªí¤¤ªº¹Ï¤ù¯Á¤Þ­È¡H

¦^´_ 3# baconbacons
1. ³æ¤@¹Ï¤ù¬O§_¦³¸óÀx¦s®æ¡A³æ¤@Àx¦s®æ¬O§_§t¦h±i¹Ï¤ù
2. ­YµL¡A´«­Ó¨¤«×¥h¦Ò¼{  '¨ú±o¬YÀx¦s®æ¤ºªº¹Ï¤ù'  ­Y¦³³o¼Ëªº¥\¯à¬O¤£¬O´N¯à¹F¦¨¦UºØ§A­nªº«ü©w¹Ï¤ù©M¦UºØ¾Þ§@ªº»Ý¨D?
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 5# baconbacons
­Y¹Ï¤ù¦b¦X¨ÖÀx¦s®æ¤º
  1. Function GetCellPic(rng As Range) As Object
  2.   Dim x
  3.   
  4.   For Each x In ActiveSheet.Shapes
  5.     If Not Application.Intersect(x.TopLeftCell.MergeArea, rng) Is Nothing Then
  6.       Set GetCellPic = x
  7.     End If
  8.   Next
  9. End Function
½Æ»s¥N½X
´ú¸Õ:
  1. Sub Test()
  2.   Dim oPic As Object
  3.   Set oPic = GetCellPic(Range("F4"))
  4.   
  5.   If oPic Is Nothing Then
  6.     MsgBox "nothing in this cell."
  7.   Else
  8.     MsgBox oPic.name
  9.   End If
  10. End Sub
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

        ÀR«ä¦Û¦b : §Ú­Ì­n°µ¦nªÀ·|ªºÀô«O¡A¤]­n°µ¦n¤º¤ßªºÀô«O¡C
ªð¦^¦Cªí ¤W¤@¥DÃD