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

»ù®æ¬ö¿ýªº»yªk¦³¼g¿ù¶Ü??

¦^´_ 45# c_c_lai


    §O³o¼Ë»¡¡AC¤j¯u¬O¨¯­W§A¤F¡A°²¤é³o»ò¦­´N°_§ÉÀ°§Ú¸Ñ¨M°ÝÃD¡A¸U¤À·PÁÂ

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-4-9 08:57 ½s¿è

¦^´_ 40# ÂŤÑÄR¦À
²×©ó°lÂܨì°ÝÃDÂI¤F¡G
½Ð­×§ï RecordPrice ªº WR §PÂ_
  1.     '  WR = Range(TG).End(xlDown).Row + 1        '  ­×§ï¦¨¥HIJµo¤§Äæ¦ì¬°§PÂ_°òÂI (WR=1048577 ?)
  2.     '  ·í¸ê®Æ¦C¶È¦³¨â¦C®É¡A¦p±q²Ä¤G¦C§@¬°§PÂ_¡A«h WR ªºµ²ªG­È¬° 1048577¡A¦Ó«D¥¿½T­È 3
  3.     '  ¬G±N End(xlDown) ­×¥¿¬° End(xlUp)¡A¦p¦¹©l¯à¥¿½TµL»~¦a¨ú±o¥¿½T­È 3
  4.     '  ³]­Y¹ïÀ³­È¤º®e¤w¦s¦b¦³¤T¦C¡B©Î¥H¤WªÌ¡AµL½×¬O¨Ï¥Î xlDown ©Î xlUp §¡µL®t²§¡A¬Ò¯à¥¿½T¨ú­È¡C
  5.     WR = Range(Left(TG, Len(TG) - 1) & Rows.Count).End(xlUp).Row + 1
½Æ»s¥N½X
¦]¬°§Ú³£¬O¦b¶W¹L²Ä¤T¦C¼w±¡ªp¤U°õ¦æ¡A¨S¯d·N¨ì§A­ì©lªº xlDown »yªk¡A©Ò¥H·|·Ó¦¨µLªk°õ¦æ¡C
²Ä 1048577 ¦C ??????¡A Oh My God!
©êºp¡I

TOP

¦^´_ 42# GBKEE

G¤j©pªºª©¥»·|¥þ³¡©¹¤U¼g¡A¦Ó¤£¬O¦³Åܰʤ~©¹¤U¼g¡A¬O³o¼Ë¶Ü??
¦Ó¥B§Ú¤â°Ê§ó§ï¤]¤£·|Ä~Äò©¹¤U¼g

TOP

¦^´_ 42# GBKEE


    §Ú¤F¸Ñ¤F¡A§Ú¸Õ¸Õ¬Ý

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-4-9 08:46 ½s¿è

¦^´_ 41# ÂŤÑÄR¦À
37©«ªºÀÉ®×
ThisWorkbook
  1. Private Sub Workbook_Open()
½Æ»s¥N½X
Sheet
  1. Private Sub Worksheet_Calculate()
½Æ»s¥N½X
¬O°Ú,¿Ã¹õ¬Ý¤[²´·ú·|µh,¤W½uªº®É¶¡»Ý±±¨î¤@¤U.
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 39# GBKEE


    G¤j¦n¤[¤£¨£¤F¡A¤§«eÅ¥§A»¡²´·ú¤£µÎªA¡AÁÙ¥H¬°§A¤ñ¸û¤Ö¤W½u¤F

G¤j½Ð°Ý¤@¤U³o­Ó¬O­n©ñ¦b­þ¸Ì?? Sheet or module ??
³o­Ó¬O·sªºª©¥»¡AÁÙ¬O°w¹ïC¤jªº­×§ïªº©O??

TOP

¦^´_ 38# c_c_lai

C¤j¡A³o¼Ë»¡¦n¤F¡A§A¤@¶}©l¶Çµ¹§ÚªºªÑ²¼0§Ú¥Î¤â°Ê§ó§ï¬O¥i¥H°õ¦æªº¡A©Ò¥H§Ú´N§â­ì¥»¨º¥÷®M¤J¤½¦¡¡A¤§«á´N¤£¯à°õ¦æ¡A§Ú"§¹¥þ"¨S¦³Åܧó¡A©Ò¥H§Ú¦b·Q¤§«e¨º¥÷¥i¥H°õ¦æ¬O¦]¬°"¯Â¼Æ¦r"¡A«á¨Ó±a¤J¤½¦¡«áµLªk°õ¦æ¡A·|¤£·|¬O¦]¬°µ{¦¡¹ï¤½¦¡ªº§PÂ_¥X²{°ÝÃD??

¦]¬°­ì¥»¥Î¼Æ¦r¥i¥H°õ¦æ¡A±a¤J¤½¦¡«á´N¤£¦æ¡A©Ò¥H§Ú»{¬°°ÝÃD¤£·|¥X²{¦b¨é°Óªº³nÅé¡A¦]¬°¦pªG°ÝÃD¥X²{¦b³nÅé¡A¨º¤@¶}©lªºªÑ²¼0´N¤]·|µLªk°õ¦æªü¡A¦ý¯Â¼Æ¦rª©ªº«o¥i¥H°õ¦æ¡A¥H¤W¬O§Ú±o¬Ýªk¡AC¤j»{¬°©O??

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-4-10 14:28 ½s¿è

¦^´_ 37# ÂŤÑÄR¦À
  1. Option Explicit
  2. Private Sub Workbook_Open()
  3.     Dim xRng As Range, First_Aaddres  As String, xRng_Name As String
  4.     Application.Calculation = xlCalculationAutomatic
  5.     With Sheets("RTD")
  6.         Set xRng = .Rows(2).Cells.Find("TotalVolume", LookIn:=xlFormulas)
  7.         If Not xRng Is Nothing Then
  8.             First_Aaddres = xRng.Address
  9.             Do
  10.                  xRng_Name = Split(xRng.Formula, "'")(1)
  11.                  xRng_Name = "TotalVolume" & Split(xRng_Name, ".")(0)
  12.                 .Names.Add xRng_Name, xRng  ''¦WºÙ©w¸q:©Ò¦³Á`¶qªºDee¤½¦¡ªºÀx¦s®æ
  13.                 Set xRng = .Rows(2).Cells.FindNext(xRng)
  14.             Loop Until xRng.Address = First_Aaddres
  15.         End If
  16.     End With
  17. End Sub
½Æ»s¥N½X
­«ºâ¨Æ¥ó¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Private Sub Worksheet_Calculate()
  3.         Dim Rng As Range, E As Variant
  4.         On Error Resume Next ' Àɮ׶}±Ò®É DEE¶Ç¦^¿ù»~­È
  5.         Set Rng = UsedRange.Cells.SpecialCells(xlCellTypeFormulas, xlErrors)
  6.         If Not Rng Is Nothing Then Exit Sub
  7.         On Error GoTo 0 '¶}½L¤£¦A³B²zµ{¦¡½Xªº¿ù»~
  8.        If Time < #9:00:00 AM# Or Time > #1:31:00 PM# Then Exit Sub '«DÀç·~®É¶¡
  9.         For Each E In Me.Names
  10.             If E.Name Like "*TotalVolume*" Then   'Á`¶qªº¦WºÙ
  11.                 If Range(E.Name) > 0 Then
  12.                     With Cells(Rows.Count, Range(E.Name).Column).End(xlUp)  ''Á`¶q¦WºÙ©Ò¦bªº³Ì©³¦C©¹¤W¨ì¦³¸ê®ÆªºÀx¦s®æ
  13.                             If .Row = 2 Or .Row > 2 And .Value <> Range(E.Name).Value Then
  14.                                 .Offset(1).Cells(1, -2).Resize(, 4) = Range(E.Name).Cells(, -2).Resize(, 4).Value
  15.                             End If
  16.                     End With
  17.                 End If
  18.             End If
  19.         Next
  20. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 36# ÂŤÑÄR¦À
½Ð¥ý§â§A¨ººÝ¾ã­Ó´ú¸Õªºµ{§Çµ²ªG¸Ô²Ó¦a´y­z¤@¤U¡A
¥]§t¨é°Ó³nÅ骺±Ò°Ê¡A¥H¤Î¬O§_¦b¶}½L´Á¶¡¹B§@¡H
¨Ã§â°õ¦æ«áªºµe­± (¤@¤ÀÄÁ«e«áªº°õ¦æªºµe­±)
Hard Copy ¥X¨Ó¤W¶Ç¡A§Ú·QÁA¸Ñ³o¤§«e§AªºÂ¦³µ{¦¡
¬O¦p¦ó°õ¦æOKªº¡C¦]¬°µ{¦¡µ²ºc¥¼ÅÜ¡AÅܰʪº¶È¶È¬O
ÅÞ¿è§PÂ_¤£¦P¦Ó¤w¡A¦b§ÚºÝµL½×·s§¡¯à¥¿±`¹B§@¡A
¬°¦ó§A¨ººÝ´N¤£¦æ¡H

TOP

¦^´_ 35# c_c_lai

ªÑ²¼10.rar (26.63 KB)
C¤jªþ¥ó¬O³Ì²×ª©¥»¡A¦¹ª©¥»¤£¥Î½Æ»s®É¶¡¡A¥u­n©¹¤U¼gB2-E2¡BF2-I2...¥H¦¹Ãþ±À¡A§Ú¤£ª¾¹D¦pªG³o¼Ëªº¸Ü¥H¤U­n¦p¦ó§ó§ï

Private Sub Worksheet_Change(ByVal Target As Range)
    '  ·í D2 Äæ¦ì¦³²§°Ê®É¡A «h¥h©I¥s RecordPrice ªº¤èªk (Method)¡C
    If Target.Address = "$D$2" Or Target.Address = "$H$2" Or Target.Address = "$L$2" Or Target.Address = "$P$2" Or _
              Target.Address = "$T$2" Or Target.Address = "$X$2" Or Target.Address = "$AB$2" Or _
              Target.Address = "$AF$2" Or Target.Address = "$AJ$2" Or Target.Address = "$AN$2" Then
        Call RecordPrice(Target.Address)
    End If
End Sub

¯uªº­n¥´100­Ó¶Ü??

TOP

        ÀR«ä¦Û¦b : ¹D¼w¬O´£ª@¦Û§Úªº©ú¿O¡A¤£¸Ó¬O¨þ¥¸§O¤HªºÃ@¤l¡C
ªð¦^¦Cªí ¤W¤@¥DÃD