|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
粗略写了下。不完美,位置会出错。仅做测试。
- Sub fff()
- Dim sh As OMath, r As Range, sha As Shape
- For Each sh In ActiveDocument.Range.OMaths
- sh.Range.CopyAsPicture
- T = Timer
- Do
- DoEvents
- Loop While Timer - T < 0.1
- Set r = ActiveDocument.Range(sh.Range.Start, sh.Range.End)
- r.EndOf (4): r.End = r.End - 1
- r.PasteSpecial Link:=False, DataType:=wdPasteEnhancedMetafile
- Set sha = ActiveDocument.Shapes(ActiveDocument.Shapes.Count)
- sha.PictureFormat.CropLeft = 180
- sha.PictureFormat.CropRight = 180
- sha.PictureFormat.CropTop = 5
- sha.PictureFormat.CropBottom = 10
- Next
- End Sub
复制代码
|
评分
-
2
查看全部评分
-
|