word中vba限制圖片顯示區(qū)域的大小 VBA能否把Word轉(zhuǎn)為純圖PDF?
VBA能否把Word轉(zhuǎn)為純圖PDF?能,需要傳兩個(gè)參數(shù),word路徑和pdf路徑。代碼也可以制成wsf文件,語言的或java內(nèi)部函數(shù)ltjobid#34wtop#34rlmltreference gu
VBA能否把Word轉(zhuǎn)為純圖PDF?
能,需要傳兩個(gè)參數(shù),word路徑和pdf路徑。
代碼也可以制成wsf文件,語言的或java內(nèi)部函數(shù)
ltjobid#34wtop#34rlm
ltreference guid#34{00020905-0000-0000-C000-000000000046}#34comment#34MSWord2000taglibrary,underHKEY_CLASSES_ROOTTypeLib#34/a8
ltscriptlanguage#34VBScript#34a8
OptionExplicit
DimHome_file
Dimoutdoc_file
#39Iflt2Then
#39MsgBox#34Usage:t1ltHome_filegtltoutdoc_filegt#34
#39WScript.Quit
#39EndIf
Home_file(0)
outdoc_file(1)
DimWordApp
SetWordAppCreateObject(##34)
With False#39可以設(shè)置word為要知道
With False#39不檢查一下單詞發(fā)音
.CheckGrammarAsYouType False#39不全面檢查語法
EndWith
#39再打開模板文件
(Home_file)
.Documents(1).Activate#39激活文檔
Dimdoc
Set doc .ActiveDocument#39能得到這個(gè)可以使用中的文件
doc.ExportAsFixedFormatoutdoc_file,17,False,0,0,1,1,0,True, True,0,True,True,False FalseWith TrueEnd With.QuitEnd Withlt/scriptgt
lt/jobgt
word vba文檔顯示在屏幕前?
樓主這個(gè)問題很搞不明白啊。VBA中用activedocument來可以表示當(dāng)前再打開的word文檔,可以用activate來激活