- ©«¤l
- 150
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 215
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- sp3
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2013-7-15
- ³Ì«áµn¿ý
- 2024-10-2
|
¥»©«³Ì«á¥Ñ blue2263 ©ó 2019-5-1 15:06 ½s¿è
ex.rar (29.08 KB)
¨âÓ¿W¥ßEXCEL ¸ê®Æ¤¬¶Ç,ªþ¥ó¬O¦bºô¯¸¤W§ä¨ìªº¬ÛÃöÀÉ®×,µy·Lקï¤F¤@¤U,
¤v¸û²Å¦X§Ú©Ò»Ý,¦ý¦³¤@ÂI¤£ª¾¦p¦óקï,¬Û½Ð±Ð¤j¤j
ªþÀɪº¾Þ§@¬O±N1.xlsm,¥´¶}µM«á,°õ¦æ¶}©lµ{§Ç,
¸Óµ{§Çª½±µ¥´¶}·sªºEXCEL¶}±Ò2.xlsm,µM«á©w´Á±N¸ê®Æ¶Ç¨ì2.xlsm
§Ú¤£·Q¥Ñ¶}©lµ{§Ç¶}±ÒExcel³nÅé¤ÎÀÉ®×
§Ú·Q§ï¬°¤â°Ê¥ý¥´¶}¨âÓEXCEL¦U¦Û¥´¶}1.xlsm &2.xlsmÀɮ׫á,ª½±µ¸ê®Æ¤¬¶Ç
½Ð±Ð¤j¤j n¦p¦óקïµ{¦¡½X
¦p¦ó±NÅܼÆSet book1 = ª½±µ©w¸q¬°2.xlsm
¦A·Ð½Ð¤j¤j¨ó§UÀ°¦£,ÁÂÁÂ- Dim app1 As Object, book1 As Excel.Workbook, UMode As Byte
- Dim sourcedata As Range, targetdata As Range, temp() As Variant
- Public Sub ¶}©l()
- UMode = 1
- Set app1 = CreateObject("Excel.Application")
- Set book1 = app1.Workbooks.Open(ThisWorkbook.Path & "\" & "2.xlsm")
- app1.Visible = True
- Set sourcedata = Range("A2:I2")
- Set targetdata = book1.Sheets("b").Range("A2:I2")
- Call ¸ê®Æ¸óµ{¦¡Âà¼g
- End Sub
- Public Sub °±¤î()
- UMode = 0
- Set app1 = Nothing
- Set book1 = Nothing
- End Sub
- Public Sub ¸ê®Æ¸óµ{¦¡Âà¼g()
- If UMode = 0 Then Exit Sub
- Cells(2, 2) = Cells(2, 2) + 2
- temp = sourcedata
- targetdata.Value = temp 'Âà¼g
- Application.OnTime Now + TimeValue("00:00:01"), "¤u§@ªí1.¸ê®Æ¸óµ{¦¡Âà¼g" '¨C¤@¬íÂà¼g¤@¦¸
- End Sub
½Æ»s¥N½X |
|