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

[µo°Ý] inputbox

¦^´_ 1# linsurvey2005
    Dim Message As String, Title As String, Default As String, MyValue As Range
    Dim R As Integer, C As Integer
    Message = "ÂI¿ï§¹²¦½Ð«ö½T©w"
    Title = "ÂI¿ï¸ê®Æ¦s©ñ¦ì¸m"
    Default = "A1"
    Set MyValue = Application.InputBox(Message, Title, Default, Type:=8)
    'Type:=8 Àx¦s®æ°Ñ·Ó¡A§@¬° Rangeª«¥ó   «e­±­n¥[  Set
   ' R = ActiveCell.Row              ActiveCell¬°§@¥Î¤¤ªºÀx¦s®æ
     
    'C = ActiveCell.Column
    R = MyValue.Row               ' «ü©w¨ìMyValue     
    C = MyValue.Column
    Cells(R, C).Value = "E ­È"
    Cells(R, C + 1).Value = "N ­È"
    Cells(R, C + 2).Value = "EL ­È"
    Cells(R, C + 3).Value = "ÄÝ©Ê"
    R = R + 1

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-5-23 11:54 ½s¿è

¦^´_ 3# linsurvey2005
¥i²¤Æ¦p Cells(R, C).Resize(1, 5) = Array("ÂI½s", "E ­È", "N ­È", "EL ­È", "ÄÝ©Ê")
³o¬O³¡¤Àµ{¦¡½X¶Ü?
¬°¦ó¥Î¨ì DoEvents   
³q±`¥Î¦b Do
              ....
               DoEvents
              ....
             Loop

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD