返回列表 上一主題 發帖

[發問] (已解決)尋找某特定公式在貼上值

  1. Sub test()
  2. For Each c In ActiveSheet.Cells.SpecialCells(xlCellTypeFormulas, 23)
  3. If c.Formula Like "*.xls]" & "*" Then
  4. c.Formula = c.Value
  5. End If
  6. Next
  7. End Sub
複製代碼

TOP

本帖最後由 oobird 於 2011-10-17 19:22 編輯

Sub test()
On Error GoTo 1
For Each c In ActiveSheet.Cells.SpecialCells(xlCellTypeFormulas, 23)
If c.Formula Like "*.xls]" & "*" Then
c.Formula = c.Value
End If
Next
1
End Sub
加上紅字略過

TOP

        靜思自在 : 甘願做、歡喜受。
返回列表 上一主題