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

[µo°Ý] ½Ð±Ð·í¸ê®Æ§Y®ÉÅÜ°Ê«á¡A¦p¦ó¦Û°Ê§Y®É¥[Á`?

[µo°Ý] ½Ð±Ð·í¸ê®Æ§Y®ÉÅÜ°Ê«á¡A¦p¦ó¦Û°Ê§Y®É¥[Á`?

¥»©«³Ì«á¥Ñ pures ©ó 2013-3-20 22:08 ½s¿è

½Ð°Ý·í¬Y¤@Àx¦s®æ¦pDDEªÑ²¼³æ¶q(A1)¡A·í³æ¶qÅܰʮɡA
¤~§Y®É¥[Á`³o³æ¶qÀx¦s®æ¡AÅܦ¨Á`¶qB1Àx¦s®æ¡A
³æ¶q¤£Â_§ïÅÜ¡AÁ`¶q¤@ª½¥[Á`(B1=B1+A1)
½Ð±ÐEXCEL VBA­n¦p¦ó¼g¡AÁÂÁ«ü±Ð^^¡C
µ{¦¡·s¤â¡A½Ð¦h«ü±Ð

¦^´_ 1# pures
¤u§@ªíªºÀx¦s®æ¦³¿é¤J®É:¤u§@ªíªº¹w³]IJ°Ê¬O¥óµ{¦¡
  1. Option Explicit
  2. Private Sub Worksheet_Change(ByVal Target As Range)
  3.     If Target.Address(0, 0) = "A1" Then         '³æ¶q(A1)
  4.         Application.EnableEvents = False
  5.         Range("B1") = Range("B1") + Target      'Á`¶q¤@ª½¥[Á`(B1=B1+A1)
  6.         Application.EnableEvents = True
  7.     End If
  8. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ pures ©ó 2013-3-21 19:40 ½s¿è

·P®¦GBKEE¤j¤jªº¦^ÂСA
¤p§Ì·ÓGBKEE¤jªºµ{§Ç°µ¡AA1Àx¦s®æ¦³¸õ°Ê¡A¦ýB1ªºÀx¦s®æ¨S¥h¥[Á`¡A
¹Ï¥Ü¦p¤U¡A¤£ª¾­þ¸Ì¦³°ÝÃD¡A·Ð½Ð¤j¤jÀ°¦£¡AÁÂÁ±z¤F^^¡C

µ{¦¡·s¤â¡A½Ð¦h«ü±Ð

TOP

¦^´_ 3# pures
Àx¦s®æªºDDE ·|¤Þµo¤u§@ªíªº­«ºâ,¤@¼Ë¬O¤u§@ªíªº¹w³]¨Æ¥ó
   
  1. Option Explicit
  2. Private Sub Worksheet_Calculate()
  3.     Range("B1") = Range("B1") + [A1]      'Á`¶q¤@ª½¥[Á`(B1=B1+A1)
  4. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

·P®¦GBKEE¤j¤jªº¦^ÂСA
¥i¥H¹B§@¤F¡A«D±`ÁÂÁ±z^^¡C
µ{¦¡·s¤â¡A½Ð¦h«ü±Ð

TOP

¥»©«³Ì«á¥Ñ twispin ©ó 2015-4-13 17:29 ½s¿è

§Ú§¹¥þ«ö·ÓGBKEE¤j¤jªº°µ¥i¬O¨S¿ìªk­C(§Ú¬O¥ÎEXCEL2003)
¶}©l°õ¦æ¥H«á¡A¥L¤£·|µ¥DDEÀx¦s®æ¦³Åܰʮɤ~¥[Á`¤@¦¸
¦Ó¬O¨C¤@¬í¥[¤F´X¦Ê¦¸¤@ª½¥[
§Ú¥i¥H«ü©w¬Y¤@­ÓDDEÀx¦s®æ¦³Åܰʮɤ~¥[Á`¶Ü?¸Ó«ç»ò°µ?ÁÂÁÂ!!
  1. Option Explicit
  2. Private Sub Worksheet_Calculate()
  3.     Range("B1") = Range("B1") + [A1]      'Á`¶q¤@ª½¥[Á`(B1=B1+A1)
  4. End Sub
½Æ»s¥N½X

TOP

¤µ¤Ñ¬°¤F³o­Ó·d©w³o­ÓÀÉ®×
¤@¶}©l¥H¬°¬OEXCEL¥»¨­©Mwin8ªº°ÝÃD
¨ì³Ì«á³swin8³£­«Äé¤F¡Aµ²ªGÁÙ¬O¤@¼Ë¡A¥u­n¶}³o­ÓÀÉ®×´N·í¾÷
«á¨Ó§â¤W­±¨º¬qµ{¦¡½X§R±¼¤~·d©w...

TOP

§Ú¦Û¤vµo²{°ÝÃDÂI¤F...
°²³]DDE¿é¥Xªº¸ê®Æ¦bsheets1ªºA1
¨º»ò´N¥u¯à¦bsheets1ªº­¶­±¼gIf Target.Address(0, 0) = "A1"
¦pªG§Ú¦bsheets2ªºA1¼g¤J"=sheets1 !A1"¡AÁöµM¸ê®ÆÁÙ¬O·|¸õ°Ê
¦ý¬O¹ïsheets2¨Ó»¡¥L¦ü¥G¤£·|IJ°Ê¤u§@ªí­«ºâ
©Ò¥H´Nºâshets2¦³¼gIf Target.Address(0, 0) = "A1"¤]¨S¥Î

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD