2014-12-02 21 views
-1

我可以設置值爲單元的單元格:#¡使用vba的(錯誤值)?如果可行,我該怎麼做?使用#值設置單元格! (錯誤值)VBA

+1

你的意思是你要把#VALUE!單元格中的錯誤值,還是隻是文本? – Rory 2014-12-02 16:04:51

+0

@Rory我想把錯誤的價值,如果它posible。 – Carol 2014-12-02 16:05:47

+2

http://www.cpearson.com/excel/ReturningErrors.aspx – 2014-12-02 16:06:51

回答

2

考慮:

Public Function MakeError(codee As Double) As Variant 
    MakeError = CVErr(codee) 
End Function 

和使用方法:

enter image description here