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

³]©w¤u§@ªíªº¤u§@½d³ò

³]©w¤u§@ªíªº¤u§@½d³ò

§Ú·Q§â¤u§@ªí³]¦bAÄæ¤u§@¡A´N¬O¨Ï¹C¼ÐÂI¨ä¥¦ÄæÁÙ¬O¶]¨ìAÄæ¡C
Ä´¦pÂIC20«o¶]¨ìA20
            D21¶]¨ìA21
³o­n¦p¦ó°µ¡H
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

¦^´_ 13# owen06


    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
      Application.Intersect([A:A], Target.EntireRow).Select
    [A1] = "¦Û§Ú·Pı¨}¦n"
    End Sub
¥i¥H¥¿±`¨Ï¥Î¤F
¤Ó·PÁ¤F!
¥[¤W[A1] = "¦Û§Ú·Pı¨}¦n"
§Úªºexcel ³£­n¥[¤W¡K
¤£¥h§ï¥¨¶°¬OµLªk²M°£ªº¡C
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 7# ¦Û§Ú·Pı¨}¦n

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
      Application.Intersect([A:A], Target.EntireRow).Select
    Range("A1").Select
    activecell.value="abcdeff1234"
    End Sub
§A¦pªG¯à©ú½T¤@ÂIªº»¡¥X§Aªº·Qªk¤Î°µªk¡A¤j®a¤ñ¸û¯à°÷½T¹êªºÀ°§U¨ì§A¡A
ÁÙ¦³¬°¤°»ò¦b°õ¦æ§¹¤F²Ä¤@¦æ¡y¤£ºÞÂI¨ì­þ¤@®æ¡A³£·|¸õ¨ì¸Ó¦Cªº²Ä¤@®æ¡zªº«ü¥O¤§«á¡A
§AÁÙ­n¦A¤U¤@­ÓRange("A1").Selectªº«ü¥O¡H
³o¼Ë¤@¨Ó·íµM´N¤£ºÞ§A°µ¤°»ò¡A³£¬O¸õ¦^¥hA1°Õ@@¡A³o¼Ë²Ä¤@­Ó«ü¥O®Ú¥»´N¬O¦h¾lªº¤F¡C
§A¦pªG¬O³æ¯Â·QÅýA1¯àÅã¥Ü¥X§A­nªº¤º®e¡A§A´N±Ë±ó[A1].SELECT
ª½±µ¤U[A1]="OOXX" ´N¦n¤F¡C

TOP

¦^´_ 11# ¦Û§Ú·Pı¨}¦n
¤£¤Ó©úÁA§Aªº³¯­z¡A½Ð¤W¶ÇÀɮ׬ݬݡC

TOP

¦^´_ 10# c_c_lai

ÁÙ¬O¦³°ÝÃD
­nÃöÀÉ®×·|«Ü§xÃø¡C
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 9# ¦Û§Ú·Pı¨}¦n
½Ð±N­ì¥»¤§
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2.     Application.Intersect([A:A], Target.EntireRow).Select
  3. End Sub
½Æ»s¥N½X
­×§ï¦¨
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.     Application.Intersect([A:A], Target.EntireRow).Select
  3. End Sub
½Æ»s¥N½X
«K¥i¥H¦b¨ä¥LÄæ¦ì¶i¦æ¿é¤J¤F¡C
§A§Æ±æªº¬O¤£¬O³o¼Ë¡H

TOP

¦^´_ 8# c_c_lai


    ¥u¯à¦bA1¤u§@¤F¡C
    ·Æ¹««ç¼ËÂI³£¥hA1
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
      Application.Intersect([A:A], Tar ...
¦Û§Ú·Pı¨}¦n µoªí©ó 2013-8-18 15:02
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2.     Application.Intersect([A:A], Target.EntireRow).Select
  3.     Range("A1").Select
  4.     ActiveCell.Value = "abcdeff1234"
  5. End Sub
½Æ»s¥N½X
¥H¤Wµ{¦¡½X¬O OK ªº¡A §A«üªº¬O¬Æ»ò¡A¯à§_¤W¶ÇÀɮסH

TOP

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
      Application.Intersect([A:A], Target.EntireRow).Select
    Range("A1").Select
    activecell.value="abcdeff1234"
    End Sub

ÁÙ¬O¤£¯à¥Î
¦Ó¥Bµ{¦¡·|¥Ø¶Ã±¼¤F
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

ActiveCell.FormulaR1C1 = "¤£ª¾¿ù¦b¨º¸Ì¡K"
§ï
activecell.value="abcdeff1234"
ss

TOP

        ÀR«ä¦Û¦b : µÊ®ð¼L¤Ú¤£¦n¡A¤ß¦a¦A¦n¤]¤£¯àºâ¬O¦n¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD