|
請教怎樣 用 EXCEL VBA 複制 WORD 文檔里的相片 到EXCEL文檔
Sub test()
Dim objword As Object, s, objexcel As Object
Set objword = CreateObject("Word.Application")
objword.Visible = True
objword.Documents.Open (ThisWorkbook.Path & "\a1.doc")
objword.activedocument.Shapes("Picture 3").Select
Selection.Copy
objword.activedocument.Close
objword.Quit
Set objdoc = Nothing
Set objword = Nothing
Set objexcel = CreateObject("excel.application")
With objexcel
ActiveSheet.Range("a1").Select
ActiveSheet.Paste
End With
End Sub
The macro didnot work ?????
[ 本帖最后由 KCFONG 于 2009-9-22 08:39 编辑 ] |
|