Sub Clear_Table(ct)
Range(ct).Select
'Range(Selection, Selection.End(xlToRight)).Select
'Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range(ct).Select
End Sub
Sub rite()
Clear_Table ("E10")
Range("E10").Value = "dwsds"
End Sub
getting compile error: Argument not optional (only want to clear value in a cell not the entire range and put the value in that cell. please help)我要清除一個單元格,然後將值賦給它
同意Vityata的觀點,但我不能複製你的錯誤。也許你有其他的代碼。 – SJR