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

[µo°Ý] inputbox

[µo°Ý] inputbox

§Ú­nÂI¿ïÀx¦s®æ¶i¦æ§Ú¸ê®ÆªºÂ\©ñ¦ì¸m(¥Î·Æ¹«ÂI¿ï)
¥i¬O³£¤£¯à¦³°Ê§@
½Ð°Ý³o¬O­þÃä¥X¿ù

    Dim Message, Title, Default, MyValue
      Message = "ÂI¿ï§¹²¦½Ð«ö½T©w"
      Title = "ÂI¿ï¸ê®Æ¦s©ñ¦ì¸m"
      Default = "A1"
    MyValue = Application.InputBox(Message, Title, Default, Type:=8)
       R = ActiveCell.Row
       C = ActiveCell.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
¶}¤ß¾Ç²ß,¾Ç²ß«Ü¶}¤ß

¦^´_ 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

³q¤F³q¤F~·PÁ GBKEE ªº«ü¾É¥H¤U¬°­×¥¿¦¨ªG
¤£ª¾¹D³o¼Ë¤l¬O§_³q¶¶ ©Î¬O¦³§ó²«Kªº¤èªk
¯u¬O·PÁÂ~µÎªA^^
Dim Message, Title, Default, MyValue
    On Error Resume Next
    Message = "ÂI¿ï§¹²¦½Ð«ö½T©w"
    Title = "ÂI¿ï¸ê®Æ¦s©ñ¦ì¸m"
    Default = "A1"
    Set MyValue = Application.InputBox(Message, Title, Default, Type:=8)
            If Err Then
          Err.Clear
    Exit Sub
   End If
    Const Rn = 3
     DoEvents
     R = MyValue.Row
     C = MyValue.Column
   
            Cells(R, C).Value = "ÂI½s"
            Cells(R, C + 1).Value = "E ­È"
            Cells(R, C + 2).Value = "N ­È"
            Cells(R, C + 3).Value = "EL ­È"
            Cells(R, C + 4).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

·PÁÂ"GBKEE"»¡©ú
DoEvents ¤£¬O¥Î¨Ó¼È°±µ{¦¡ªº°Ê§@¹À?
§Ú¬O·QÄË¥X¤@¨Ç®É¶¡µ¹¹q¸£¶}±ÒAuto CADµ{¦¡
¨ü¯q¨}¦h ¯uªº«ÜµÎªA^^
¶}¤ß¾Ç²ß,¾Ç²ß«Ü¶}¤ß

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦pÆp¥Û¡j®É¶¡¹ï¤@­Ó¦³´¼¼zªº¤H¦Ó¨¥¡A´N¦pÆp¥Û¯ë¬Ã¶Q¡F¦ý¹ï·M¤H¨Ó»¡¡A«o¹³¬O¤@§âªd¤g¡A¤@ÂI»ù­È¤]¨S¦³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD