Giordano Bruno
Well-known Member
- Joined
- Jan 7, 2007
- Messages
- 1,356
This seems to me to be an Excel Bug. I am using Excel 365 and in a workbook I create the following UDF
Function Multiply(x As Double)
x = x * 2
Multiply = x
End Function
This work perfectly in the form "=Multiply(A1)" and also as "=Multiply(A1)+Multiply(A1)"
The moment I use the second formula, (a) breakpoints in my Worksheet_Change code (and any other code for that matter) cease to work, (b) I cannot step through any code in any module of any worksheet. Removing the formula does not undo the damage. Closing Excel and restarting does. I have tried this on two computers. Has anyone else noticed this problem? Does anyone have a workaround?
Function Multiply(x As Double)
x = x * 2
Multiply = x
End Function
This work perfectly in the form "=Multiply(A1)" and also as "=Multiply(A1)+Multiply(A1)"
The moment I use the second formula, (a) breakpoints in my Worksheet_Change code (and any other code for that matter) cease to work, (b) I cannot step through any code in any module of any worksheet. Removing the formula does not undo the damage. Closing Excel and restarting does. I have tried this on two computers. Has anyone else noticed this problem? Does anyone have a workaround?