首页 > 其他 > 详细

我的宏

时间:2019-09-27 23:08:15      阅读:123      评论:0      收藏:0      [点我收藏+]

Sub Macro12()
‘ctrl+0
‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29

‘ ^p是回车 ^t是tab键
Set myRange = ActiveDocument.Content

myRange.Find.Execute FindText:="?", ReplaceWith:="?^p", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="^p^p", ReplaceWith:="^p", Replace:=wdReplaceAll

myRange.Find.Execute FindText:="。", ReplaceWith:="。^p", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="^p^p", ReplaceWith:="^p", Replace:=wdReplaceAll

End Sub

Sub Macro11()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29“:


Set myRange = ActiveDocument.Content
myRange.Find.Execute FindText:="莫要", ReplaceWith:="魔药", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="抹药", ReplaceWith:="魔药", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="膜要", ReplaceWith:="魔药", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="科林", ReplaceWith:="克林", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="科林", ReplaceWith:="克林", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="柯林", ReplaceWith:="克林", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="科琳", ReplaceWith:="克林", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="读了", ReplaceWith:="杜勒", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="堵了", ReplaceWith:="杜勒", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="笔下", ReplaceWith:="陛下", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="她们", ReplaceWith:="他们", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="光换", ReplaceWith:="光环", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="比下", ReplaceWith:="陛下", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="笔下", ReplaceWith:="陛下", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="笔下", ReplaceWith:="陛下", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="笔下", ReplaceWith:="陛下", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="笔下", ReplaceWith:="陛下", Replace:=wdReplaceAll


myRange.Find.Execute FindText:=":,", ReplaceWith:=":", Replace:=wdReplaceAll
myRange.Find.Execute FindText:=":。", ReplaceWith:=":", Replace:=wdReplaceAll
myRange.Find.Execute FindText:=",:", ReplaceWith:=":", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="。:", ReplaceWith:=":", Replace:=wdReplaceAll
myRange.Find.Execute FindText:=",“", ReplaceWith:=":“", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="“,", ReplaceWith:=":“", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="”。", ReplaceWith:="”", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="”,", ReplaceWith:="”", Replace:=wdReplaceAll
myRange.Find.Execute FindText:=",”", ReplaceWith:="。”", Replace:=wdReplaceAll
myRange.Find.Execute FindText:="“:", ReplaceWith:=":“", Replace:=wdReplaceAll
End Sub

Sub Macro1()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.MoveUp Unit:=wdParagraph

Selection.InsertBefore Text:="“"
Selection.MoveLeft Unit:=wdCharacter, Count:=1
End Sub

Sub Macro2()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.MoveDown Unit:=wdParagraph

Selection.MoveLeft Unit:=wdCharacter, Count:=1

Selection.InsertAfter Text:="”"
Selection.MoveLeft Unit:=wdCharacter, Count:=2
End Sub


Sub Macro3()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.MoveDown Unit:=wdParagraph

Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.Delete Unit:=wdCharacter, Count:=1

End Sub

Sub Macro4()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.MoveDown Unit:=wdParagraph
Selection.TypeBackspace
Selection.TypeBackspace
‘Selection.Delete Unit:=wdCharacter, Count:=1
‘Selection.TypeBackspace
Selection.InsertAfter Text:=","
Selection.MoveLeft Unit:=wdCharacter, Count:=1

End Sub

Sub Macro5()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.InsertBefore Text:=":"
Selection.MoveLeft Unit:=wdCharacter, Count:=1

End Sub

Sub Macro6()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.InsertBefore Text:="“"
Selection.MoveLeft Unit:=wdCharacter, Count:=1

End Sub

Sub Macro7()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.InsertBefore Text:="”"
Selection.MoveLeft Unit:=wdCharacter, Count:=1

End Sub


Sub Macro8()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.InsertBefore Text:="!"
Selection.MoveLeft Unit:=wdCharacter, Count:=1

End Sub

Sub Macro9()

‘ Macro1 Macro
‘ 宏由 56373 录制,时间: 2019/06/29


Selection.InsertBefore Text:="?"
Selection.MoveLeft Unit:=wdCharacter, Count:=1

End Sub

 

我的宏

原文:https://www.cnblogs.com/yyyyyyyyqs/p/11600777.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!