- 帖子
- 315
- 主題
- 51
- 精華
- 0
- 積分
- 367
- 點名
- 0
- 作業系統
- win7
- 軟體版本
- office2003
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2015-9-29
- 最後登錄
- 2021-10-12
|
本帖最後由 Airman 於 2019-5-18 04:28 編輯
回復 3# Airman
測試主檔 :
(主檔)增加取代的語法.rar (58.53 KB)
在列40~列56插入
Range("AZ1:CC1").Replace "大", "小"
Range("AZ1:CC1").Select
Application.FindFormat.Interior.ColorIndex = 43
Application.ReplaceFormat.Interior.ColorIndex = 40
Selection.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder _
:=xlByColumns, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True
Application.FindFormat.Interior.ColorIndex = 8
Application.ReplaceFormat.Interior.ColorIndex = 39
Selection.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder _
:=xlByColumns, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True
Application.FindFormat.Interior.ColorIndex = 37
Application.ReplaceFormat.Interior.ColorIndex = 45
Selection.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder _
:=xlByColumns, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True
請問 :要如何簡化錄製部分的程式碼?
還有~放置的列位正確嗎?
懇請各位大大不吝賜正是幸!謝謝! |
|