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

[µo°Ý] Ãö©óÀx¦s®æ ¨â¬qªº°ÝÃD

¥»©«³Ì«á¥Ñ hugh0620 ©ó 2012-3-14 11:23 ½s¿è

¦^´_ 5# mark15jill

   ³o­Ó­è¦n§Ú³Ìªñ¤]¦³³B²z¹L~  §Ú±Ä¥Îªº¬O³z¹L¤@¯ë¨ç¼Æªº³B²z¤è¦¡~ ¨Ó¼¶¼gµ{¦¡½X
    C1 = Left(Sheet3.Cells(­ì©l¸ê®ÆÀx¦s®æ), Application.Find(Chr(13), Sheet3.Cells(­ì©l¸ê®ÆÀx¦s®æ), 1) - 1)                                                                          '(´î¤£´î1¬Ý§A¸ê®Æ¤º®e,¦Û¦æ¼W´î)
    C2 = Mid(Sheet3.Cells(­ì©l¸ê®ÆÀx¦s®æ), Application.Find(Chr(10), Sheet3.Cells(­ì©l¸ê®ÆÀx¦s®æ), 1) + 1, Len(Sheet3.Cells(­ì©l¸ê®ÆÀx¦s®æ)))  '(¥[¤£¥[1¬Ý§A¸ê®Æ¤º®e,¦Û¦æ¼W¥[)
   'C1=¦W¦r
   'C2=°Ï°ì
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

¦^´_ 7# mark15jill

³o¼Ë´N¥i¥H¤F~
chr(13)->chr(10)
¦]¬°§Úªº¸ê®Æ¬O±q¸ê®Æ®w¾É¥X¨Óªº~ ©Ò¥H·|¦³¤@­Óchr(13)ªº¦r¤¸~
©Ò¥H~ §A­n¦Û¦æ¥h¤F¸Ñ~ §A¸ê®Æªº¤º®e~ ¦A¥h½Õ¾ã¦¨¾A·íªºµ{¦¡½X~

Sub ex()
Cells(1, 3) = Left(Sheet1.Cells(1, 1), Application.Find(Chr(10), Sheet1.Cells(1, 1), 1) - 1)                                                 '(´î¤£´î1¬Ý§A¸ê®Æ¤º®e,¦Û¦æ¼W´î)
Cells(1, 4) = Mid(Sheet1.Cells(1, 1), Application.Find(Chr(10), Sheet1.Cells(1, 1), 1) + 1, Len(Sheet1.Cells(1, 1))) '(¥[¤£¥[1¬Ý§A¸ê®Æ¤º®e,¦Û¦æ¼W¥[)

End Sub
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD