07gashbridge
New Member
- Joined
- Apr 3, 2019
- Messages
- 2
Hell hive mind, hope you're all well,
I've got a user form for adding in multiple set's of user defined data across multiple rows in a sheet from their inputted data in the form fields. The form also has a function to repeat each data entry depending on how many times the user specifies for there to be copies of their inputted data in the user form. For each repeat of the entry they have specified, the code I have add's the value '0.1' to a certain text field in the user form so each row entered has an ID which goes up in '0.1, 0.2, 0.3' etc. (start defined by user inputting data into form field, so they could start at 12.3 for example)
What i'm trying to figure out but can't get my head around is that when the ID text box decimal place value goes about x.6, I want it jump up to the next whole number so the sets of data inputted have an ID number which goes up in groups of six's. E.G.
3.5
3.6
4.1
4.2
4.3
4.4
4.5
4.6
5.1
5.2
5.3 etc....
Is there a VBA code I can add to my userform for this or a formatting rule anywhere that I just can't seem to find.
Any help would be muchly appreciated, if you have any questions or need more info, i'm happy to give more for you!
Keep well!
I've got a user form for adding in multiple set's of user defined data across multiple rows in a sheet from their inputted data in the form fields. The form also has a function to repeat each data entry depending on how many times the user specifies for there to be copies of their inputted data in the user form. For each repeat of the entry they have specified, the code I have add's the value '0.1' to a certain text field in the user form so each row entered has an ID which goes up in '0.1, 0.2, 0.3' etc. (start defined by user inputting data into form field, so they could start at 12.3 for example)
What i'm trying to figure out but can't get my head around is that when the ID text box decimal place value goes about x.6, I want it jump up to the next whole number so the sets of data inputted have an ID number which goes up in groups of six's. E.G.
3.5
3.6
4.1
4.2
4.3
4.4
4.5
4.6
5.1
5.2
5.3 etc....
Is there a VBA code I can add to my userform for this or a formatting rule anywhere that I just can't seem to find.
Any help would be muchly appreciated, if you have any questions or need more info, i'm happy to give more for you!
Keep well!