- 帖子
- 678
- 主題
- 147
- 精華
- 0
- 積分
- 799
- 點名
- 0
- 作業系統
- win 8
- 軟體版本
- MS 2003
- 閱讀權限
- 50
- 性別
- 男
- 註冊時間
- 2016-2-9
- 最後登錄
- 2022-1-20
|
爬文許久,還是找不到適用的語法^^"
先以錄製的語法暫用~~如果可以再修減的話,誠請各位大大不吝賜教!謝謝!
'更改文字和底色
Range("AP2:AP127").Select
Application.FindFormat.Interior.ColorIndex = 44
Application.ReplaceFormat.Interior.ColorIndex = 38
Selection.Replace What:="大", Replacement:="小", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=True, _
ReplaceFormat:=True
Application.FindFormat.Interior.ColorIndex = 4
Application.ReplaceFormat.Interior.ColorIndex = 40
Selection.Replace What:="大", Replacement:="小", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=True, _
ReplaceFormat:=True
Application.FindFormat.Interior.ColorIndex = 8
Application.ReplaceFormat.Interior.ColorIndex = 39
Selection.Replace What:="大", Replacement:="小", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=True, _
ReplaceFormat:=True
Range("AX2:BB127").Select
Selection.Replace What:="大", Replacement:="小", LookAt:=xlPart |
|