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

[µo°Ý] ½ÐÀ°¤p§Ì°£¿ù...¬O¤£¯à³sÄò¥Îfind¨ç¼Æ¶Ü?!

¥»©«³Ì«á¥Ñ lpk187 ©ó 2016-8-15 17:46 ½s¿è

¦^´_ 1# VBALearner


    µ{¦¡¦³»~¤wÀ°§A­×¥¿¡A¤é´Á¥²¶·«Å§i¬°Date ¡AFind¤~·|§ä¨ì
À³¸Ó­n¾i¦¨«Å§iÅܼƪº²ßºD¡I
  1. Sub test()

  2.     Dim rng1 As Range, rng2 As Range
  3.     Dim ¤é´Á As Date
  4.     With Sheets(1)
  5.         ¸¹½X = .Cells(3, 18)
  6.         ¤é´Á = .Cells(2, 19)
  7.         '.Activate'³o¦æ¥i¥H¤£¥Î
  8.         Set rng1 = .Columns(1).Find(¸¹½X)
  9.         Set rng2 = .Rows(1).Find(¤é´Á, LookIn:=xlValues)
  10.         .Cells(3, 19) = .Cells(rng1.Row, rng2.Column).Value
  11.     End With
  12.    
  13. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : «H¤ß¡B¼Ý¤O¡B«i®ð¤TªÌ¨ã³Æ¡A«h¤Ñ¤U¨S¦³°µ¤£¦¨ªº¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD