网站首页
编程语言
数据库
系统相关
其他分享
编程问答
pgWidth
2024-05-26
自适应/调整图片大小为页面大小
SubResizeImagesToPageWidth()Application.ScreenUpdating=True'获取当前文档Setdoc=ActiveDocument'获取页面宽度并减去页边距Withdoc.PageSetuppgWidth=.PageWidth-.LeftMargin-.RightMarginEndWith'