下面的例程將數字和數字前面的數字和數字替換爲右側的數字和數字,但當數字爲十進制時顯示錯誤1004。VBA十進制值
我該如何解決?
Sub EnterEqual()
Dim CellContent As Variant
Dim cell As Variant
For Each cell In Selection
CellContent = cell.Value
cell.ClearContents
cell.Value = "=" & CellContent & "+" & "rc[2]"
Next cell
End Sub
,難道你不想導致這裏的加法?最好是,如果您可以給我們一個關於您的輸入數據和預期輸出的示例,請將它作爲示例... :) – bonCodigo