vbscript 批量修改模板

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 批量修改模板相关的知识,希望对你有一定的参考价值。

Dim MyDialog As FileDialog, vrtSelectedItem As Variant, doc As Document
    Set MyDialog = Application.FileDialog(msoFileDialogFilePicker)
   
    
If MyDialog.Show = -1 Then
    Application.ScreenUpdating = False
    For Each vrtSelectedItem In MyDialog.SelectedItems
    Set doc = Documents.Open(filename:=vrtSelectedItem, Visible:=True)
    With doc
    With Selection.Find
  .Text = "Table 1."
  .Font.Bold = True
  .MatchCase = True
  .Execute
  If .Found Then
    Selection.MoveDown wdParagraph, 1
    Selection.Tables(1).Select
    Selection.ParagraphFormat.LineSpacingRule = wdLineSpaceSingle
  End If
End With
    
    
    .Close True
    End With
   
    Next
    Application.ScreenUpdating = True
    End If
    
    MsgBox "格式化文档操作设置完毕!", vbInformation

以上是关于vbscript 批量修改模板的主要内容,如果未能解决你的问题,请参考以下文章

一款批量修改AE模板的工具

vbscript 批量BIBTEX

vbscript 批量改缩写

vbscript 批量导出VBA文件

vbscript 批量转换XLS到XLSX

通过python封装zabbix-api批量修改模板中触发器名称