- ©«¤l
- 20
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 50
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ·s¦Ë
- µù¥U®É¶¡
- 2013-3-18
- ³Ì«áµn¿ý
- 2014-5-12
|
With wb
Dim UpdateName As String
For Each meModule In wb.VBProject.VBComponents
With meModule
If (.Type = vbext_ct_StdModule And .Name = "Module1") Then
UpdateName = meModule.Name
Application.VBE.ActiveVBProject.VBComponents.Remove Application.VBE.ActiveVBProject.VBComponents(.Name)
abook.VBProject.VBComponents(UpdateName).Export "C:\copypaste\" & UpdateName
wb.VBProject.VBComponents.Import "C:\copypaste\" & UpdateName
End If
End With
Next
End With
-----------------------------------------------------------
¤W±³oÓµ{¦¡¡A¬O§Ú¥Îexport©Mimport¨Ó¶×¤J¶×¥X
¦ý¬O¦³¤@Ó°ÝÃD¡A¦b¶×¤J"Module1"®É¡Aexcel vba¤ºªº¼Ò²Õ¦WºÙ·|³Q©R¦W¬°"Module11"
¦h¤F¤@Ó"1"¡A¨ä¥Lªº³£¨S¦³°ÝÃD¡A³oÓ¬Oexcelªºbug¶Ü?
ÁٽЦU¦ìµªÂСAÁÂÁÂ!! |
|