1
我對VBA很新。如果我的問題很簡單,我很抱歉。我有個問題。當我運行下面的代碼,我得到了以下錯誤消息:VBA錯誤:檢測到模糊名稱(Excel 2010)
編譯器錯誤:檢測明確名稱:發軔
任何人都可以請解釋一下我的代碼部分是錯誤的?
Option Explicit
Dim n As Double
Private faren As Integer
Dim result As Double
Function faren(n)
faren = (9/5) * (n + 32)
End Function
Function c(n)
Dim c As Long
c = (5/9) * (n - 32)
End Function
Sub test()
result = faren(32)
MsgBox "the degree in farenheit is " & result & "Farenheit."
End Sub
謝謝您的澄清! :-) –