1
我想用「。」替換「 - 」字符。在包含日期信息的單元格內。用日期格式替換字符「 - 」
與下面的代碼,這與文本格式的細胞中獲得,但不注日期:
Worksheets("Sheet1").Columns("A").Replace _
What:="-", Replacement:=".", _
SearchOrder:=xlByColumns, MatchCase:=True
我我能做到這一點,但與日期格式細胞?
不,您不能在搜索中設置單元格格式條件。您將不得不爲每個單元循環執行此操作。 – Taosique 2014-10-31 16:17:04