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

[µo°Ý] ¿ý»s¥¨¶°¨C¤é¦V¤U·s¼W¤@¦C¸ê®Æ-¿ï¾Ü©Ê¶K¤W³]©w

[µo°Ý] ¿ý»s¥¨¶°¨C¤é¦V¤U·s¼W¤@¦C¸ê®Æ-¿ï¾Ü©Ê¶K¤W³]©w

http://forum.twbts.com/redirect. ... amp;goto=nextnewset
§Ú°Ñ¦Ò³o¤@½gªº¥¨¶°«á¼g¦¨§Ú©Ò»Ý­nªº¥¨¶°¡A¦ý¬O²{¦b¹J¨ìµLªk¿ï¾Ü©Ê¶K¤W"­È"¡A§Úªº¥¨¶°·|§â¤½¦¡¤]µ¹§ì¹L¥h¡C
¦pªG¥i¥Hªº¸Ü§Ú§Æ±æ¯à§ï¦¨¶K¤W-­È»P­ì©l®æ¦¡³]©w(¦]¬°¦³®É­Ô§Ú·|§âÀx¦s®æ¤W¦â )


Sub §ì¸ê®Æ¨ìÀx¦s®æ()
    Sheets("A").Range("C1:T1").Copy Sheets("A").Cells(Rows.Count, "C").End(xlUp).Offset(1)
    'Sheets("A")ªºCÄæ³Ì«á¤@¦C(Cells(Rows.Count, "C"),
    'End(xlUp)©¹¤W¨ì¦³¸ê®Æ¦C
    'Offset(1)ªº¤U¤@¦C
End Sub

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-7-25 11:02 ½s¿è

¦^´_ 1# zv1122
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub §ì¸ê®Æ¨ìÀx¦s®æ()
  3.       Dim R As Integer, Col As Integer
  4.       With Sheets("A")
  5.          R = .Cells(Rows.Count, "C").End(xlUp).Offset(1).Row             'R =>³Ì«á¤@ªº¦C¸¹ ' Row:ª«¥óªºÄÝ©Ê ¶Ç¦^Cellsªº¦C¸¹
  6.          Col = .Range("C1:T1").Columns.Count                             'Col => Copy½d³òªºÁ`øó¼Æ
  7.         'Columns:Àx¦s®æªºª«¥ó(Äæ)
  8.         'Count : ª«¥óªºÄÝ©Ê,¶Ç¦^ª«¥óªº¼Æ¶q
  9.         .Range("C1:T1").Copy .Cells(R, "C")
  10.         .Cells(R, "C").Resize(1, Col) = .Cells(R, "C").Resize(1, Col).Value
  11.         '***** Value: ª«¥óªºÄÝ©Ê,¶Ç¦^¤½¦¡­pºâ«áªº­È           *************
  12.     End With
  13. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 1# zv1122


   ¦]¬°§A¤W¦âªº³¡¤À¡A¦b2007²o§è¨ìºÞ²z³W«h§Ú¯uªº¤£ª¾¹D«ç»òÀ°§A¸Ñ¨M

¦ý¬O§A¶K¤Wªºµ{¦¡½X ¥i¥H§Q¥Î¥H¤U³o¬q
  1. Sub CopyPaste()

  2. Sheets("sheet1").Range("A1:E1").Copy
  3. '§ÚÀ°§A§ï¦¨A1:E1¤­Äæ¡A»Ý­nªº§A¦A¦Û¤v§ï
  4. With Sheets("sheet2")

  5. .Activate                    
  6. .Cells(Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial xlPasteValues  

  7. '¨Ï¥ÎPasteSpecial ¤èªk¡A¥i¥HÃþ¦ü§A½Æ»s¤@¬q½d³ò¡A¨ì§A­nªº¦a¤è«ö¥kÁä¡A¿ï¾Ü©Ê¶K¤W¸Ì­±ªº©Ò¦³¥\¯à¡A¸Ì­±¦n¼Ë¨S¥]§t§AªººÞ²z³W«h¡A´N¬O¨Ì¾Ú³W«h¤W¦âªº³¡¤À(³o³¡¤À§Ú¤£ª¾¹D¦³¨S¦³·dÀ´¡A§A¤W¦â¬Oª½±µ¶K¤WÃC¦âÁÙ¬O¡A¨Ì¾ÚºÞ²z³W«hÅܦâ??)¡A©Ò¥H¨Ï¥ÎxlPasteValues  ¥u¶K¤W­È


  8.     'Sheets("A")ªºCÄæ³Ì«á¤@¦C(Cells(Rows.Count, "C"),
  9.     'End(xlUp)©¹¤W¨ì¦³¸ê®Æ¦C
  10.     'Offset(1)ªº¤U¤@¦C
  11. End With


  12. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ zv1122 ©ó 2013-7-25 15:30 ½s¿è

¦^´_ 2# GBKEE
¸Õ¹L¤§«á
GBKEE¤jªº¤èªk¥i¥H§ì¨ìÃC¦â¡A¦ý¬O§ì¨ìªº­È¦n¹³¦ì¸m¶]±¼¡A­ÈÅܦ¨0¡C
handsometrowa ¤jªº¤èªk¥i¥H§ì¨ì­È¥i¬O¤W¤£¤FÃC¦â ¡C
    ¥ý«e¥i¯à¨S¸ÑÄÀ²M·¡¡A§Ú¸É¤W§ÚªºÀɮסC§Ú¥H«e³£¬O¤â°Ê¶K¤W«á¡A±q¶K¤W¿ï¶µ¤è¶ô¿ï¾Ü"­È»P­ì©l®æ¦¡³]©w"¡C
    §Ú¦b·Q°ÝÃD¬O¤£¬O¤£¯à¥ÎCOPY­n¥Î=¤~¥i¥H§â­È©MÃC¦â³£¥¿½T§ì¨ì¡C


    ¥H«e¦bºô¸ô¤W¦³¤H¤À¨É¹LÃþ¦üÀɮ׬O¥Î°j°éµ{¦¡½X§ì¸ê®Æ¡A¥Lªº¤èªk§Ú¦üÀ´«DÀ´¡A©Ò¥H·Q°Ý¦U¦ì¦³¨S¦³¨ä¥L¤èªk¸Ñ¨M¡C---¹Ï¤ùÀɬO³o­Ó°j°éªº¤j­Pª©­±¡C
Dim DealerOpNetVol, DealerOpNetVal, DealerOpToTXF, DealerTXFNetVol, DealerTXFOPNetVol  As Double
Dim FiniOpNetVol, FiniOpNetVal, FiniOpToTXF, FiniTXFNetVol, FiniTXFOPNetVol  As Double
Dim LastDay As String
Dim TwClose, TwChange, TwVolume As Double


Private Sub CommandButton1_Click()
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ''''  §ì¦ÛÀç°Ó(Dealer)¤Î¥~¸ê(Fini)´Á³f¤j¥x(TXF)¤Î¿ï¾ÜÅv(options) '''''''''''''''''''''''''''''''''''''
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Select
   
    ''¦ÛÀç°Ó(Dealer)''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ''''''§ì¦ÛÀç°Ó(Dealer)¿ï¾ÜÅv²b¤f¼Æ Dealer Options Net Volume '''''''''''''''''''''''''''''''''''''''''
    DealerOpNetVol = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("B4")
   
    ''''''§ì¦ÛÀç°Ó(Dealer)¿ï¾ÜÅv²bª÷ÃB(»õ) Dealer Options Net Value'''''''''''''''''''''''''''''''''''''''
    DealerOpNetVal = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("C4")
        
    ''''''§ì¦ÛÀç°Ó(Dealer)¿ï¾ÜÅv¬ù·í¤j¥x Dealer Options transfer to TXF'''''''''''''''''''''''''''''''''''
    DealerOpToTXF = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("D4")
   
    ''''''§ì¦ÛÀç°Ó(Dealer)¤j¥x²b¤f¼Æ Dealer TXF Net Volume''''''''''''''''''''''''''''''''''''''''''''''''
    DealerTXFNetVol = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("E4")
   
    '''''''§ì¦ÛÀç°Ó(Dealer)´ÁÅv²b¤f¼Æ Dealer TXF Options Net Volume'''''''''''''''''''''''''''''''''''''''
    DealerTXFOPNetVol = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("F4")
   
    ''¥~¸ê(Fini)''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ''''''§ì¥~¸ê(Fini)¿ï¾ÜÅv²b¤f¼Æ Fini Options Net Volume '''''''''''''''''''''''''''''''''''''''''''''''
    FiniOpNetVol = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("G4")
   
    ''''''§ì¥~¸ê(Fini)¿ï¾ÜÅv²bª÷ÃB(»õ) Fini Options Net Value'''''''''''''''''''''''''''''''''''''''''''''
    FiniOpNetVal = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("H4")
        
    ''''''§ì¥~¸ê(Fini)¿ï¾ÜÅv¬ù·í¤j¥x Fini Options transfer to TXF'''''''''''''''''''''''''''''''''''''''''
    FiniOpToTXF = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("I4")
   
    ''''''§ì¥~¸ê(Fini)¤j¥x²b¤f¼Æ Fini TXF Net Volume''''''''''''''''''''''''''''''''''''''''''''''''''''''
    FiniTXFNetVol = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("J4")
   
    '''''''§ì¥~¸ê(Fini)´ÁÅv²b¤f¼Æ Fini TXF Options Net Volume'''''''''''''''''''''''''''''''''''''''''''''
    FiniTXFOPNetVol = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("K4")
   
    '''''''§ì¤j½L«ü¼Æ ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    TwClose = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("L4")
   
    '''''''§ì¤j½Lº¦¶^ ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    TwChange = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("M4")
   
   
    '''''''§ì¤j½L¦¨¥æ¶q ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    TwVolume = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("N4")
   
    ''''''''''''''''§ì¤µ¤Ñ¤é´Á get last day value''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Sheets("¿ï¾ÜÅv¶R½æÅv¤À­p").Select
    Sheets("¿ï¾ÜÅv¶R½æÅv¤À­p").Range("A1") = Mid(Sheets("¿ï¾ÜÅv¶R½æÅv¤À­p").Range("C14"), 4, 10)
    LastDay = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Range("A4").Text
   
    '''''''''''''''''±N§ì¨úªº¼Æ­È¦Û°Ê¶ñ¤J´Á³f¿ï¾ÜÅv¦hªÅ²Î­pªí''''''''''''''''''''''''''''''''''''''''''''''
   
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Select
    I = 8
    Do
       I = I + 1
       If I > 1000 Then
          Exit Do
       End If
    Loop Until (LastDay = Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, 1).Text)

    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "B") = DealerOpNetVol
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "C") = DealerOpNetVal
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "D") = DealerOpToTXF
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "E") = DealerTXFNetVol
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "F") = DealerTXFOPNetVol
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "G") = FiniOpNetVol
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "H") = FiniOpNetVal
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "I") = FiniOpToTXF
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "J") = FiniTXFNetVol
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "K") = FiniTXFOPNetVol
   
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''¤j½L«ü¼Æ
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "L") = TwClose
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "M") = TwChange
    Sheets("´Á³f¿ï¾ÜÅv¦hªÅ²Î­p").Cells(I, "N") = TwVolume
   
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
End Sub

¤W¶Ç¥Î2.png (24.87 KB)

°j°é¤èªkªºª©­±

¤W¶Ç¥Î2.png

¤W¶Ç¥Î.rar (17.73 KB)

§ÚªºÀÉ®×

TOP

¦^´_ 4# zv1122
¼Æ­È¬°¦ó·|¶]±¼  
¤£­n°õ¦æ³o¦æµ{¦¡½X,¬Ý¬Ý½Æ»s«áªº¤½¦¡
  1. '.Cells(R, "C").Resize(1, Col) = .Cells(R, "C").Resize(1, Col).Value
½Æ»s¥N½X

C1ªº¤½¦¡(¬Û¹ïªº°Ñ·Ó)  =B!D20/100, ¦p½Æ»s¨ìC11¤½¦¡Åܦ¨=B!D30/100
($ µ´¹ïªº°Ñ·Ó) =B!$D$20/100       , ¦p½Æ»s¨ìC11 ¤½¦¡ÁÙ¬O=B!$D$20/100
¤W¶ÇªºÀÉ®× §A­n¦³¦p¹Ï¤ù¤Wªº¬[ºc,¤~¦nÀ°§Aªº.
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 5# GBKEE
­ì¨Ó¬O§Ú°ò¥»¥X°ÝÃD§Ñ°O³]©wµ´¹ï¦ì¸m¡AÀx¦s®æ§ï¦¨µ´¹ï¡F¤W¦â-³]©w®æ¦¡¤Æªº±ø¥ó§ï¦¨¬Û¹ï«á§¹¥þ¬O§Ú·Q­nªº¥¨¶°¡A¤@¶}©lªº¦^ÂдN¬O¥¿½T¸Ñµª¡C  

¸Õ¹L¬Ù²¤³o¦æ«á
  1. '.Cells(R, "C").Resize(1, Col) = .Cells(R, "C").Resize(1, Col).Value
½Æ»s¥N½X
·|Åܦ¨§â¤½¦¡¤@°_§ì¹L¥h¡A¨C¤Ñ¤@§ó·s¡AÀx¦s®æ¬ö¿ýªº¸ê®Æ¤Ï¦Ó³Q¬~±¼¡C
°ÝÃD¤w¸Ñ¨M¡A·PÁÂ

¸É°Ý¤@¤UÃö©ó¡¨copy¡¨©M¡¨=¡¨ªº®t§O¬O¤£¬Ocopy·|§â¤½¦¡¤@°_§ì¹L¥h¡F=«h¬O°O¿ý­È¡C  ¦b§Ú«á¨Óªþ¹Ïªºexcel§ó·s§@ªk¬O³z¹L°j°é¤ñ¹ï¤é´Á¬Û²Åªº¦C«á¥Î=¨Ó§ì­È¡A¥ÎÀx¦s®æ=©w¸qªºdouble¡C
¦Ó¦b¤U­±³o½gªº¤èªk¤¤§Ú°õ¦æ¥¨¶°·|§ì¨ì¤½¦¡¡A­ì¦]¬O¤£¬Ocopy·|§ì¨ì¤½¦¡?
http://forum.twbts.com/redirect. ... amp;goto=nextnewset

TOP

¥»©«³Ì«á¥Ñ zv1122 ©ó 2013-7-26 12:10 ½s¿è

¦^´_ 3# handsometrowa
§Ú¤W¦âªº³¡¤À¬O§Q¥Î®æ¦¡-³]©w®æ¦¡¤Æªº±ø¥ó¨Ó§PÂ_¤W¦â¡C
¥H©¹§Ú¤â°Ê§ó·s³£¬O½Æ»s«á¨ìCÄæ²ÄN¦CCTRL+V¦bÂI¿ïªþ¹Ïªº¶K¤W¿ï¶µ¿ï¾Ü¡¨­È»P­ì©l®æ¦¡³]©w(U)¡¨ªº¿ï¶µ
°ÝÃD¤w¸Ñ¨M¡A·PÁ¦^ÂСC

¤W¶Ç.png (61.6 KB)

¤â°Ê§ó·s®É

¤W¶Ç.png

TOP

¦^´_ 6# zv1122
  ª«¥óAªºÄÝ©Ê=ª«¥óBªºÄÝ©Ê
  1. Option Explicit
  2. Sub §ì¸ê®Æ¨ìÀx¦s®æ()
  3.       Dim R As Integer, Rng As Range
  4.       With Sheets(1)
  5.          R = .Cells(Rows.Count, "C").End(xlUp).Offset(1).Row
  6.          Set Rng = .Range("C1:T1")         ' ª«¥óB
  7.         .Range("C" & R & ":T" & R) = Rng.Value                     'ª«¥óAªºÄÝ©Ê=ª«¥óBªºÄÝ©Ê
  8.         .Range("C" & R & ":T" & R).Interior.ColorIndex = Rng.Interior.ColorIndex  'ª«¥óAªºÄÝ©Ê=ª«¥óBªºÄÝ©Ê
  9.     End With
  10. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD