求助:怎样在Word里面建立宏(文献标题上标化)?
我按照书上说的建立'文献标题上标化',如下:Selection.HomeKey Unit:=wdStory
Selection.Find.Replacement.ClearFormatting
With Selection.Find.Replacement.Font
.Superscript = True
End With
With Selection.Find
.Text = "\[[0-9,0-9,~~-\-\ ]@\]"
.Replacement.Text = ""
.MatchWildcards = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.Replacement.ClearFormatting
With Selection.Find.Replacement.Font
.Superscript = True
End With
With Selection.Find
.Text = "[[0-9,0-9,~~-\ ]@\]"
.Replacement.Text = ""
.MatchWildcards = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
运行后发现不对,系统总是提示:
运行时错误'5590'
"查找内容"文本中包含有无效的范围
请高手多指点.谢谢 帮你转到专业软件版吧,对这个还真不是很熟~~
页:
[1]