A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thank you for all your help!!!!!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I would consider myself a pretty experienced excel user, but I don't know anything about VBA. I am trying to create a simple function below
Function IFZERO(number As Double, new_value)
If (number = 0) Then
new_value
Else
number
End If
End Function
But I keep getting the following error message
"Compile error: Expected Sub, Function, or Property"
Does anyone know why I am getting this? Debugging doesn't help me.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Thank you for all your help!!!!!