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

[µo°Ý] ©I¥s¥~³¡¿W¥ß°õ¦æÀÉ®×¥¨¶°

¦^´_ 3# singo1232001

·PÁÂsingo1232001¤j¤jªº¦^ÂСA±zªºªþÀɤp§Ì¤w´ú¸Õ¡A¦ý¦³°ÝÃD½Ð±Ð¡A
Workbooks("a1").Sheets("¤u§@ªí1").[a1] = i: DoEvents
¤@¶}©l³£¥X¿ù¦b³oÃä¡A§ó§ï¦p¤U«á¥i¥H°õ¦æ¡A
Workbooks("a1.xlsm").Sheets("¤u§@ªí1").[a1] = i: DoEvents
(a2,a3¦P¨B§ó§ï)

¦ýa2¤Îa3¤´µM¬O¦ba1ªºÀɮ׬[ºc¤U¥H°ßŪ¼Ò¦¡¶}±Ò°õ¦æ¡A
°ßŪ¼Ò¦¡¶}±Ò¤§ÀÉ®×a2,a3§¡¥i§¹¦¨°õ¦æ¥¨¶°¡A
¤w¥ý¦æ¤â°Ê¿W¥ß°õ¦æa2¤Îa3ÀÉ¥¼°õ¦æ¥¨¶°¡A
¨ì¦¹¨BÆJ¦@¦³5­ÓÀɮ׶}±Ò1a1,1a2,1a3,1a2°ßŪ,1a3°ßŪ
¤£ª¾¹D­þÃ䦳¿ùÁٽЫü¾É«ü¾É¡A·P®¦¡I

¤p§Ìºc·Q¬O¦bAÀɮשI¥sBÀÉ®×¥H¿W¥ß°õ¦æ¤è¦¡¶}±Ò¨Ã°õ¦æ¥¨¶°¡A
¦ýAÀÉ®×¥i¥HÄ~Äò¶i¦æ¤â°Ê¤u§@©Î¨ä¥L¥¨¶°¡A¦ÓBÀɮ׫ùÄò°õ¦æ¥¨¶°¡A
    Dim xlApp As Excel.Application
    Dim book As Excel.Workbook
    Dim sheet As Excel.Worksheet
    Set xlApp = CreateObject("excel.Application")
    Set book = xlApp.Workbooks.Open("D:\¤½¦¡.xls")
    ¦¹³B¥i¥H¿W¥ß°õ¦æ¶}±ÒBÀÉ®×
    Application.Run "'D:\¤½¦¡.xls'!Module1.msg"
    ¦¹³BµLªk¥H¿W¥ß°õ¦æBÀÉ®×msg()¡A¤´¥HAÀÉ®×°õ¦æmsg()

¤W­z¼gªk¤´»Ý§JªA¥H¤U°ÝÃD¡G
¤@¡B¥i¶}±Ò¿W¥ß°õ¦æBÀɮסA¦ýµLªk°õ¦æBÀÉ®×¥¨¶°¡F©Î   ¥i°õ¦æ¥¨¶°¦ý«o¬O¥HAÀɮ׬[ºc¤U¶}±Ò
¤G¡B¦]µ{¦¡½X¼¶¼g¦bAÀɮסA¬G©I¥sBÀÉ®×°õ¦æ¥¨¶°¥¼§¹¦¨«e¡A±±¨îÅv¤´¦bBÀɮסAµLªk©I¥s«áÂkÁÙ±±¨îÅv

¥H¤WÁٽФj¤j«ü¾É«ü¾É¡A·P¿E³á¡I
§Ú¬O´µ¦h

TOP

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-11 18:58 ½s¿è

¦^´_ 1# reangame


¦¹¬°½d¨ÒÀÉ®×
°O±o¶}±Ò®É ¨C­ÓÀÉ®× ¥Ñ©ó¬OxlsmÀÉ®× ¥²¶·¥ý¶}±Ò¤@¦¸ ±Ò¥Î¥¨¶° ­«·s¦sÀɤ@¦¸
¤è¥i¥H¥¿±`¹B¦æ

§ó¥¿
Application.Run "¤½¦¡!Module1.msg"
©Î
Application.Run "¤½¦¡.xls!Module1.msg"

Downloads.zip (96.14 KB)

TOP

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-11 17:36 ½s¿è

Application.Run "'¤½¦¡'!Module1.msg"
©Î
Application.Run "'¤½¦¡.xls'!Module1.msg"

TOP

        ÀR«ä¦Û¦b : ¤Hªº²´·úªø¦b«e­±¡A¥u¬Ý¨ì§O¤Hªº¯ÊÂI¡Aµ·²@¬Ý¤£¨ì¦Û¤vªº¯ÊÂI¡C
ªð¦^¦Cªí ¤W¤@¥DÃD