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

[µo°Ý] µLªk§ä¥X³Ì¤j­È

[µo°Ý] µLªk§ä¥X³Ì¤j­È

¤£ª¾¹D­þÃ䦳°ÝÃD
§Q¥Îapplication.WorksheetFunction.Max
µLªk§ä¥X³Ì¤j­È

µLªk§ä¥X³Ì¤j­È.rar (10.35 KB)

Application.WorksheetFunction.Max(Range(Cells(6, k), Cells(10, k)))

TOP

¤Ó²Ê¤ß¤F!! ·Q»¡«ç»ò§ä¤£¥X¨Ó
ÁÂÁ¤j¤j

TOP

¦^´_ 1# Helain
Cells(11, k).Value = Application.WorksheetFunction.Max(Cells(6, k).Resize(4))
.Resize(4)=>.Resize(4,1)  : ±N«ü©wªº½d³òÂX¥R¬° (4¦C,1Äæ)½d³ò

TOP

¥i¥H°Ý¤@¤U
resize³q±`¦bVBA¬O«ü¤°»ò·N«ä
ÁÙ¦³­Ó¤p¤pºÃ°Ý
·í§Ú set  ABC=     ®É,
¤@©w³£­n¦b³Ì«á ¼g¤J set ABC = nothing¶Ü?
³o¤S¬O«ü¤°»ò·N«ä©O??

TOP

¦^´_ 5# Helain
  1. Sub Ex()
  2.     Dim abc As Object
  3.     Set abc = [b3]
  4.     MsgBox abc.Address
  5.     Set abc = abc.Resize(5, 5)
  6.     MsgBox abc.Address
  7. End Sub
½Æ»s¥N½X
Set abc = Nothing
¤£¤@©w­n¦³ªº.
¬O±N abc ª«¥óÅܼƦb°O¾ÐÅ餤ÄÀ©ñ±¼ ,¥i´î¤Ö¦û¥Î°O¾ÐÅ骺¸ê·½

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