美好的一天!我只想询问是否有其他方法可以让我的宏工作更快?我只使用录制宏。我的宏做的是在工作表中找到单词“JOBSPECIALTYCODE”然后选择并删除。然后转到下一张纸。 就像提供LINK PLEASE CLICK
的图像一样Sub aHaveProgess()
'
'
'
'
'Deleting Trash Text to make it clear
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "JOBSPECIALTYCODE"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = False
.CorrectHangulEndings = False
.HanjaPhoneticHangul = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = False
.MatchFuzzy = False
End With
Do While Selection.Find.Execute
Selection.SelectCell
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
Loop