VBA 将剪贴板中的图片保存为 jpg 或 png 文件 (VBS同理可得) | ActiveWindow.View.Type = wdWebView | | Selection.Paste | | Selection.HomeKey Unit:=wdLine, Extend:=wdExtend | | Selection.Delete Unit:=wdCharacter, Count:=1 | | Selection.Paste | | With ActiveDocument.WebOptions | | .RelyOnCSS = False | | .OptimizeForBrowser = False | | .OrganizeInFolder = False | | .UseLongFileNames = True | | .RelyOnVML = False | | .AllowPNG = True | | .ScreenSize = msoScreenSize1920x1200 | | .PixelsPerInch = 96 | | .Encoding = 65001 | | End With | | With Application.DefaultWebOptions | | .UpdateLinksOnSave = False | | .CheckIfOfficeIsHTMLEditor = False | | .CheckIfWordIsDefaultHTMLEditor = False | | .AlwaysSaveInDefaultEncoding = False | | .SaveNewWebPagesAsWebArchives = False | | End WithCOPY |
|