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

[µo°Ý] ½Ð°ÝRange¤º¦³Åܼƪº¼gªk

[µo°Ý] ½Ð°ÝRange¤º¦³Åܼƪº¼gªk

½Ð°Ý¦U¦ì~ §Ú¦b§O¤HªºVBA¤¤¬Ý¨ì³o­Óµ{¦¡

    x1x = InputBox("½Ð¿é¤J¶}©lrow")
    x2x = InputBox("½Ð¿é¤Jµ²§ôrow")
        
    Range("A1:B1").Value = Range("A" & x1x & ":B" & x1x & "").Value
    Range("A2:B2").Value = Range("A" & x2x & ":B" & x2x & "").Value

§Ú·Q½Ð°ÝRange¤¤ªº  ("A" & x1x & ":B" & x1x & "")  ¤@°ï " " ©M & ¬O«ç»ò¨Óªº?

¥t¥~·Q½Ð°ÝCell©MRange³£¬Oªí¥Ü¦ì¸m
¦ý¤@­Ó¬OÃþ¦ü§¤¼Ðªí¥Üªk¡A¥t¤@­Ó¬Oª½±µªº¦ì¸m(ex:C3)ªí¥Üªk
§Ú±`±`·d¤£²M·¡­n¥Î­þºØªí¥Üªk or ­n¤£­n¥[¤W " "
½Ð°Ý¤j®a¦b´y­zªº®É­Ô¦³¨S¦³¤°»ò¯S§Oªº°O¾Ð¤èªk©O?
·PÁÂ!!

Range &  Cell ¤§¶¡ªº¤¬¬ÛÀ³¥Î

¯uªºÆZ¦hºØÂà´«ªº

§Úª¦¤å¦^¥h ¨S¦³·Q¨ì·í¦~´N¦³¤H°Ý¹L¤F  

¨ü±Ð¤F^^

TOP

·PÁÂregister313 ¤j¤jªº¸É¥R»¡©ú!
²{¦b§Ú«D±`²M·¡ªº¤F¸Ñ¤F ^^

TOP

¥»©«³Ì«á¥Ñ register313 ©ó 2012-2-1 19:38 ½s¿è

¦^´_ 13# sweetkitty

Range("A1")    =>   ª½±µ»¡©úA1 (¦r¦ê)
Range("A" & 1) =>  "A"³s±µ1(¦r¦ê³s±µ¼Æ¦r)(³oºâ¬O¦r¦ê)  => ¤]¬OA1(¦r¦ê)
¨âªÌ¬O¬Û¦Pªº,³£¬O«üA1Àx¦s®æ

Range("A" & A)  ­Y¥ý«ü©wÅܼÆA¤§­È=1    =>    "A"³s±µÅܼÆ(¦r¦ê³s±µÅܼÆ(ÅܼƤ§­È=1))(³oºâ¬O¦r¦ê)  => ¤]¬OA1(¦r¦ê)
Range(A & 1)    ­Y¥ý«ü©wÅܼÆA¤§­È="A"  =>                                                                          => ¤]¬OA1(¦r¦ê)
¼Æ¦r¥H¥~ªº¦r¤¸¥²¶·¨Ï¥ÎÂù¤Þ¸¹¼Ð¥Ü¡A§_«h·|³Q»{©w¬°ÅܼƦWºÙ

TOP

¦^´_ 13# sweetkitty

¥u­n¥Î&³s±µ«á³£¦¨¤F¦r¦ê«¬ºA
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 8# Hsieh

¤£¦n·N«ä§ÚÁÙ¬O¦³ÂIconfuse
1.  Range ÄÝ©Ê
¥i¥Î Range(arg) ¶Ç¦^¥Nªí³æ­ÓÀx¦s®æ©ÎÀx¦s®æ½d³òªº Range ª«¥ó¡A¨ä¤¤ arg ¬°½d³ò¦WºÙ(¦r¦ê«¬ºA)¡C
   

¥H¤U¨â¦æªí¥Üªº¬O¦P¼ËªºªF¦è
        Range("A1").Value = "A1"
        Range("A" & 1).Value = "A1"

Range¸Ì­±­n ¦r¦ê«¬ºA ªº½d³ò¦WºÙ¡A©Ò¥H("A1")¨S¦³°ÝÃD
¦ý¬O("A" & 1) ¤£¬O ¦r¦ê ¥[¤W ¼Æ­È ¨âºØ«¬ºAªº²V¦X¶Ü?
Á`ı±o³o¨âºØªí¥Üªk¨ã¦³¤£¦P«¬ºA...

TOP

¦^´_ 11# Hsieh

sir , ©Î³\ªø¤[¥H¨Ó,¤@ª½¦³µÛ¿ù»~ªºÆ[©À, §Ú·|¸ÕµÛ±N¤@¤ä¤jªºµ{¦¡¥hÅçÃÒ, ¦pªG¹ï©ó³o­ÓijÃD¤´¦³¤£¦Pªº¬Ýªk, §Ú¦A§â sample ¥á¤W¨Ó,, ¦A³Â·Ð±z¨ó§U½T»{. Thanks
Homeman

TOP

¦^´_ 10# homeman

³t«×À³¸Ó¤£¬O¦bRANGE©ÎCELLSªº¼gªk
¥i¯à¬O§A¦b¹Bºâ¨ä¦ì§}¦r¦ê»PÄæ¦C¸¹ªº¤èªk¥X²{®t²§
¤£§«±N±z´ú¸Õªºµ{¦¡¶K¤W¨Ó¬Ý¬Ý
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 4# GBKEE


    :P ¦]¬°¥H range & cells ªº¼gªk, ³t«×¤W¯uªº¦³®t, ©Ò¥H, °Ý¤F¤@­Ó²Â°ÝÃD, ÁÂÁ±zªº¦^ÂÐ.
Homeman

TOP

·PÁ¶W¯Åª©¥Dªº¦^À³... §Úªº°ÝÃD¯u¬O¶Wªì¯Åªºªü...  ©ç¤ô >///<

TOP

        ÀR«ä¦Û¦b : ¤H¥Í³Ì¤jªº¦¨´N¬O±q¥¢±Ñ¤¤¯¸°_¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD