vba - VBA 增量字符间距
问题描述
我有这段代码可以将文本压缩为 0.2,但希望它是增量的。所以每次我运行代码时,文本都会压缩 0.2。有谁知道我需要在我的代码中添加什么?
Sub CondenseText()
On Error GoTo Catch
Dim o As Shape, b As Boolean
Set o = ActiveWindow.Selection.ShapeRange(1)
If Not o Is Nothing Then
With o
.TextFrame2.TextRange.Font.Spacing = -0.2
End With
End If
Exit Sub
Catch:
If Err.Number = -2147188160 Then MsgBox CG_NOTHING_SELECTED
End Sub
解决方案
推荐阅读
- amazon-web-services - 关于添加内联策略与附加托管策略的性能
- python - 如何使用 Python 从 JSON 向现有列表添加键
- angular - 清晰度数据网格在使用内置字符串过滤器过滤数字时遇到问题
- python - 我在 VS Code 中使用随机库时遇到错误
- sql - 求每支球队的总分,但依靠对外关系
- javascript - 如何获取 H1 标签的值并使用 Jest 和 RTL 对其进行测试
- css - 在css中对齐图像旁边的文本
- javascript - div中的文本:换行时在中间分裂
- python - 通过 dask 应用 scipy binned_statistic
- git - 运行 git fetch origin 时出现 Git gc 和 git prune 警告