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

[µo°Ý] 2­ÓEXCEL°õ¦æ°ÝÃD(«e´º­I´º)½Ð±Ð

[µo°Ý] 2­ÓEXCEL°õ¦æ°ÝÃD(«e´º­I´º)½Ð±Ð

¥»©«³Ì«á¥Ñ bqwangs ©ó 2014-8-4 17:09 ½s¿è

§Ú¦³2­ÓEXCEL·|¦P®É¶}±Ò
§Ú¦³¥Î¤ô¥­¨Ã±Æ¤F ¦p¹Ï



¦ý§Ú¥­®É·|Åýbook1Àɦb¤W­±
book2ÀÉ·|¦b¤U¤è¨C¤ÀÄÁ°õ¦æ¤@¦¸VB½X
­n¦p¦óÅý¥L¤£¼vÅTbook1
¦Óbook2¯à¥¿±`¦b«á­±°õ¦æ
½Ð°Ý­n¦p¦ó­×§ïbook2¸Ìªºµ{¦¡½X
´Á«Ý¦U¦ì¤j¤jªº¦^ÂÐ

book2 µ{¦¡¦p¤U
  1. Private Sub Workbook_Open()
  2.    Start
  3. End Sub

  4. Sub Start()
  5. '
  6.     t = Now + TimeValue("00:01:00")
  7.     Application.OnTime t, "Macro7"
  8.    
  9. End Sub

  10. Sub Macro7()
  11. Application.ScreenUpdating = False

  12.         Range("G8").Select
  13.     Selection.Copy
  14.     Range("G7").Select
  15.     ActiveSheet.Paste
  16.     Call Start
  17. Application.ScreenUpdating = True

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

¦^´_ 1# bqwangs
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.    Dim H As Integer, W As Integer
  4.     With Application
  5.         .WindowState = xlMaximized
  6.         H = .Height
  7.         W = .Width
  8.         .WindowState = xlNormal
  9.         .Top = 1
  10.         .Left = 1
  11.         .Width = W
  12.         .Height = H / 2
  13.         With New Application
  14.             .Visible = True
  15.             .WindowState = xlNormal
  16.             .Top = Int(H / 2)
  17.             .Left = 1
  18.             .Width = W
  19.             .Height = H / 2
  20.             .Workbooks.Open ThisWorkbook.Path & "\book2.xls" '²Ä¤G­ÓÀÉ®×
  21.         End With
  22.         .ActiveWindow.Activate
  23.     End With
  24. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ bqwangs ©ó 2014-8-6 15:40 ½s¿è

¤j¤j
§Ú¬OVB¥~¦æ
¤W­zªºµ{¦¡
­n¥[¦b­þ¸Ì??
:L
©ÎªÌ À°§Ú³]¤@­Ó½d¨ÒÀÉ

TOP

¦^´_ 3# bqwangs
Book2¤£¬O¦³ Private Sub Workbook_Open() [³oµ{¦¡½X¦b ThisWorkbook¼Ò²Õ¸Ì]
¥i¦b Book1 ±N  Sub Ex() §ï¬° Sub Workbook_Open()  ,
Book1¶}±Ò®É¦Û°Ê°õ¦æ, ©Î¬O.
  1. Private Sub Workbook_Open()
  2.         Ex
  3. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2014-8-7 07:07 ½s¿è

¦^´_ 1# bqwangs
§A¬O§_À³¥Î©ó¬Ý½L§@·~¡H
¦pªG¬Oªº¸Ü¡A¾Ú¥H©¹²LÁ¡¸gÅç½×¡A
¦³®É·|³y¦¨ DDE µL·N¦a¤¤³~¤¤Â_¡A
­P«áÄò¼Æ¾ÚµLªk°O¿ýªº±¡¨Æµo¥Í¡A
©Ò¥H­n®É®É¯d·N­«·s±Ò°Ê¸ÓExcel¡C

TOP

        ÀR«ä¦Û¦b : «Î¼e¤£¦p¤ß¼e¡C
ªð¦^¦Cªí ¤W¤@¥DÃD