- ©«¤l
- 913
- ¥DÃD
- 150
- ºëµØ
- 0
- ¿n¤À
- 1089
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-8-28
- ³Ì«áµn¿ý
- 2023-7-19
|
¤j¤j¦n,
½Ð°Ý:
1. ¥H¤U¸ô®|ªº➤¤é¯Z²z³f´«ºâªí,¦bVBA¤¤¸ô®|§â➤Åܬ°?¦ÓµLªk¶}±ÒÀÉ®×,n¦p¦óקïµ{¦¡½X or »yªk?
2. ¦bWorkbooks("OK.xlsx")µ{¦¡¤¤,¨äÀɮצWºÙ¬OOK- 5¤ë.xlsx
¦ýÀɮצ]¬°¬O¦@¥Îªº,·|¦³¤H¥hקïÀɦW,VBA·|§ä¤£¨ìÀÉ®×,¦pªG§Ú·Q¥H"OK.xlsx"¥h§ä´MÀÉ®×,¤]´N¬O§â"- 5¤ë"¬Ù²¤,½Ð°Ý»yªkn«ç»ò¼g?- Dim mFile As String, ¨Ó·½ÀÉ As Workbook, ¥ØªºÀÉ As Workbook, Sh As Worksheet, xSh As Worksheet, i As String
- mFile = Dir("D:\Ī¦Ë¦@¥Î\ÜÀx¦@¥Î\?¤é¯Z²z³f´«ºâªí\108.5¤ë\OK*.XLSX") '¶}±Ò«ü©w¦WºÙ¶}ÀYªºÀÉ®×
- Do While mFile <> ""
- Workbooks.Open Filename:="D:\Ī¦Ë¦@¥Î\ÜÀx¦@¥Î\?¤é¯Z²z³f´«ºâªí\108.5¤ë\" & mFile
- mFile = Dir()
- Loop
- Set ¨Ó·½ÀÉ = Workbooks("²z³f³æ_All.xlsx")
- Set Sh = ¨Ó·½ÀÉ.Sheets("¤ñµá¦h.OK")
- Set ¥ØªºÀÉ = Workbooks("OK.xlsx")
- Set xSh = ¥ØªºÀÉ.Sheets(i)
½Æ»s¥N½X |
|