I have
Please Login or Register to view this content.
and so on for 40 textboxesPlease Login or Register to view this content.
What would be the class module for 40 textboxes.
I have
Please Login or Register to view this content.
and so on for 40 textboxesPlease Login or Register to view this content.
What would be the class module for 40 textboxes.
Sorry, I was wrong,misunderstand the question.
Last edited by dotchiejack; 06-02-2020 at 02:48 AM.
Click the * Add Reputation below to say thanks.
You need to post example file as your current code is not clear on how it is used.
On the surface it looks like you are multiplying the contents of a textbox by the contents of another textbox. But as you are doing this in the change event everytime you update the textbox it will trigger the change event again and carry on in a loop.
Your class would need to include 2 textbox objects.
Hi Andy,
Thanks for responding.
I made a small example, but I have a whole list like this.
Please advice.
Userform module
Class module, Class1Please Login or Register to view this content.
Please Login or Register to view this content.
Thank you Andy,great job.
Hi, I have a next question.
What would be te cllas module solution if I want the total of the 3 TextBoxt textboxes.
Thanks to look into my problem.
Last edited by Knoet; 06-03-2020 at 12:18 PM.
You could have added a public sub to the userform and used that.
But I have used another class object to centralise the callbacks to the userform.
Class module, CEventListener
revised Class1 module codePlease Login or Register to view this content.
revised userform codePlease Login or Register to view this content.
Please Login or Register to view this content.
Hi Andy,
Thank you for your reply.
I have a problem as we use comma's instead of dots, the calculatins are not correct. I tryed to replace the comma's by dots but i still have wrong calculations.
Any ideas?
Thanks
If the issue is with numeric separators and decimal delimiter, then it would not have been working for you at the start.
I assume for you the number ten you would use comma for decimal 10,0 rather than the period I would expect with UK settings 10.0
What does the VAL function return for the test values? You will need to step through the code and check or use debug.print commands to write to the immediate window
How did you try to change it ?
Just use the 'Replace' function to achieve the desired effect, e.g.:
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks