返回列表 上一主題 發帖

[發問] replace 語法

[發問] replace 語法

無此語法 ?? ==> Cells(3, i).Formula.Replace
改成
Sub macro1()
Dim i As Integer, K
For i = 3 To 5 Step 1
Set K = Cells(3, i).Formula
K.Replace "*", "=if(a1="""",""""," & Cells(3, i) & ")" '型態不符合
Next
End Sub

        靜思自在 : 知識要用心體會,才能變成自己的智慧。
返回列表 上一主題