BlueSpruce
Active member
- Local time
- Today, 09:44
- Joined
- Jul 18, 2025
- Messages
- 987
he incorrectly wrote the second argument of MsgBox using the Addition operator, rather than the correct logical disjunction operator.![]()
So you're saying vbYesNo + vbDefaultButton2 is what's causing the problem, and I should've used ampersand to concat, or a double pipe, instead of the plus sign?... Then why did my code run correctly when all who repro'd it did not experience the anomaly?
I do not see any changes in the msgbox constants: https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/msgbox-constants
Last edited: