软件:excel
版本:office 365
想请教各位前辈,我想将多个开启的档案内容里搜寻到HHH后移到右边一格储存格的值改
为000,请问各位前辈,我的VBA哪边有错,执行后,只会修改到最后一个档案而已,其他
先
开起的档案都没有修改到,谢谢大家!
Dim wb as workbook
Dim ABC as range
For each wb in application.workbook
Set ABC = Activesheet.Cells.Find(What:="HHH",
LookIn:=xIFormulas2,
LookAt:=x1Part, SearchOrder: =xlByRows, SearchDirection: xINext,
MatchCase: =False, SearchFormat: =False)
ABC.Offset (, 1): Select
ActiveCell. FormulaR1C1 = "000"