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

[µo°Ý] ¦p¦ó¥ÎVBA¹ï·s¥[ªº¤u§@ªí²K¥[VBA

[µo°Ý] ¦p¦ó¥ÎVBA¹ï·s¥[ªº¤u§@ªí²K¥[VBA

½Ð±Ð¦U¦ì¤j¤j¡A¦p¦ó¥ÎVBA·s¥[¤@­Ó¤u§@ªí¨Ã¹ï¥¦¥[¤JVBA¡C

¨Ò¦p¡A·s¥[¤@­Ó¦W爲¡§ABC1¡§ªº¤u§@ªí¡A¨Ã¥[¤J
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then MsgBox "$A$1 Changed"
End Sub
ss

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-7-27 06:22 ½s¿è

¦^´_ 1# sunnyso
  1. Option Explicit          'Lines 1  '¤u¨ã->¿ï¶µ:¦p¦³¤Ä¿ï ­n¨DÅܼƫŧi, ¼Ò²Õ·|¦Û°Ê¿é¤JSub Ex()
  2.     With Sheets.Add(, Sheets(Sheets.Count))
  3.         With ThisWorkbook.VBProject.VBComponents(.CodeName).CodeModule
  4.             .InsertLines 2, "Private Sub Worksheet_Change(ByVal Target As Range)"
  5.             .InsertLines 3, "IF Target.Address = ""$A$1"" Then MsgBox ""$A$1 Changed"""
  6.             .InsertLines 4, "End Sub"
  7.         End With
  8.     End With
  9. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# GBKEE

·PÁ¶Wª©¡C¨ü±Ð¤F¡C
ss

TOP

        ÀR«ä¦Û¦b : ¡i¦æµ½­n¤Î®É¡j¦æµ½­n¤Î®É¡A¥\¼w­n«ùÄò¡C¦p¿N¶}¤ô¤@¯ë¡A¥¼¿N¶}¤§«e¤d¸U¤£­n°±º¶¤õ­Ô¡A§_«h­«¨Ó´N¤Ó¶O¨Æ¤F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD