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

[µo°Ý] ¸ó¬¡­¶Ã¯¥¨¶°¦p¦ó¥¿±`¿W¥ß°õ¦æÁקK°}¦C¯Á¤Þ¶W¥X½d³ò

[µo°Ý] ¸ó¬¡­¶Ã¯¥¨¶°¦p¦ó¥¿±`¿W¥ß°õ¦æÁקK°}¦C¯Á¤Þ¶W¥X½d³ò

¥»©«³Ì«á¥Ñ zv1122 ©ó 2016-7-12 15:02 ½s¿è

¦U¦ì¦n¡A½Ð°Ý
·í§Ú¦P®É¶}±Ò2­Ó¬¡­¶Ã¯A¡BB¡A¦p¦óÅýA¬¡­¶Ã¯ªº¥¨¶°¿W¥ß¥¿±`°õ¦æ
¤£¶]¥X¡¨°õ¦æ¶¥¬q¿ù»~¡¦9¡¦: °}¦C¯Á¤Þ¶W¥X½d³ò¡¨

A¬¡­¶Ã¯ ¥¨¶°¥Øªº¬O¡A¤£Â_ªº¨CX¬í°õ¦æ2­Ó°Ê§@  1.­«ºâ§@¥Î¤¤¤u§@ªí(¦bA¬¡­¶Ã¯¬Y¤u§@ªí)  2.¬YÄæ±Æ§Ç(¦bA¬¡­¶Ã¯¬Y¤u§@ªí)
B¬¡­¶Ã¯ ¬O§Úªº¥D­n¤u§@µøµ¡¡A·í§Ú¦AB¬Ý¸ê®Æ®É§Æ±æ¯àÅýAªº¥¨¶°¥¿±`°õ¦æ
google¤£¥X³o­Ó°ÝÃD¡A§Æ±æ¦U¦ì¯à½ç±Ð¡A·PÁÂ

¥t¥~¨º2­Ó°Ê§@¦pªG¤§¶¡§Æ±æ¶¡¹jx¬í¦b°õ¦æ°Ê§@2¡A½Ð°Ý¸Ó¦p¦ó½s¼g?
   
Application.MaxChange = 0.001
    ActiveWorkbook.PrecisionAsDisplayed = False
    ActiveSheet.Calculate
-----------------------------------------------------------------------------------
Range("J1:N405").sort Key1:=Range("M2"), Order1:=xlDescending, Header:= _
        xlYesGuess

¦^´_ 1# zv1122

¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub EX()
  3.     Dim Wb As Workbook, Sh As Worksheet
  4.     Set Wb = Workbooks("A.XLS")
  5.     Set Sh = Wb.Sheets("Sheet1")
  6.     Application.MaxChange = 0.001
  7.     Wb.PrecisionAsDisplayed = False
  8.      Sh.Calculate
  9. '-----------------------------------------------------------------------------------
  10.     With Sh
  11.         .Range("J1:N405").Sort Key1:=.Range("M2"), Order1:=xlDescending, Header:=xlYesGuess
  12.     End With
  13. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ zv1122 ©ó 2016-7-14 00:43 ½s¿è

¦^´_ 2# GBKEE
·PÁª©¥D¦^´_
¤£¦n·N«ä¡A§Ú¥¨¶°ªì¾ÇªÌªí¹F±o¤£¦n¡Aª©¥D¨º¬q¦n¹³¸ò§Ú«ä¦Òªº¤£¦P
«á¨Ó¤gªk·Ò¿û¿ýªü¼gªü¼g¥X³o¬q¡AÀµ½ÐÀ°¬Ý¬Ý

­ì·N¡G¸õ¨ì¬¡­¶Ã¯A¡AA1¤u§@ªí¹Bºâ¡AA2¤u§@ªí¹Bºâ¡Aµ¥3¬í¡A±Æ§ÇA2¤u§@ªíªºJ1:N405¥HM2±Æ¡C
            ¸õ¨ì¬¡­¶Ã¯B¡AB1¤u§@ªíªºDG:DHÄæ°µ¹Bºâ¡C
            ¸õ¨ì¬¡­¶Ã¯A¡A¦pªGU1¤£¬OªÅ¥ÕÅý¥¨¶°°±¤î¡A§_«h¸õ­p®É¾¹­«½Æ°µ¡C
PS 1.¨º­Óµ¥3¬í¬O¬°¤F¹Bºâ§¹¦A°µ±Æ§Ç¡A¦pªG¤Ó§Ö±Æ§Ç¦³¨ÇÀx¦s®æ¸ê®Æ¬OÁÙ¨S¹Bºâªº¤U¥h±Æ§Ç¡C
      2.¨ä¹ê¬¡­¶Ã¯¡B¤u§@ªí¤§¶¡¸õ¨Ó¸õ¥h¬O¤£¥²­nªº°Ê§@¡A¦]¬°¥u·|¥Î¿ýªºµ²ªG¼g¦¨³o¼Ë¡CÀµ½Ð°ª¤â­×§ïÀu¤Æ
  1. Sub sort()
  2. Windows("A.xls").Activate
  3. Sheets("A1").Select
  4. Application.MaxChange = 0.001
  5.     ActiveWorkbook.PrecisionAsDisplayed = False
  6.     ActiveSheet.Calculate
  7. Sheets("A2").Select
  8. Application.MaxChange = 0.001
  9.     ActiveWorkbook.PrecisionAsDisplayed = False
  10.     ActiveSheet.Calculate
  11. Application.Wait Now + TimeValue("0:0:3")
  12.     Range("J1:N405").sort Key1:=Range("M2"), Order1:=xlDescending, Header:= _
  13.         xlYesGuess
  14. Windows("B.xls").Activate
  15. Sheets("B1").Columns("DG:DH").Calculate
  16. Windows("A.xls").Activate
  17.     If Range("U1") <> "" Then Exit Sub
  18.     Call Start
  19. End Sub

  20. Sub Start()
  21.     t = Now + TimeValue("00:00:15")
  22.     If Range("U1") <> "" Then Exit Sub
  23.     Application.OnTime t, "sort"
  24. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : °µ¦n¨Æ¤£¯à¤Ö§Ú¤@¤H¡A°µÃa¨Æ¤£¯à¦h§Ú¤@¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD