Weird VBA occurance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone
I am experiencing the weirdest thing
I have a userform in VBA that is drawing info from my model (a Double value), I have declared my Double value as a space holder, I get the value from the model and pass it to the space holder and with the space holder I do a calculation. Then I pass the space holder and the calculated results to the textboxes on my form.
Sounds about right? That is what I also thought. My problem occurs when I pass the spaceholder value to the calculations and the calculations return a 0 when another value is expected. When I pass the model value directly to the textbox, then the textbox to the spaceholder and then the spaceholder to the calculation I get the results I expect.
Why is this happening and what can I do to fix it?