D
DeanL
Hi everyone,
I've been trying to solve what is probably an extremely simple problem
and desperately need some assistance.
My problem is that I have a Word UserForm with 5 textboxes that all
have an initial string set to 0, now what I need is when someone
changes the values in the textboxes and clicks on the OK button that
the values in the textboxes will be formatted to the format 0000
(already got this done), and a string created from the textboxes with
appropriate separators (either a comma or ampersand).
The process would work fine if all five textboxes are always filled
out (i.e. 0001, 0002, 0003, 0004 & 0005) but I need a way to work with
any number of textboxes from 1 to 5 and omit the textboxes that have
not been changed from 0 as shown below:
1. 0001
2. 0001 & 0002
3. 0001, 0002 & 0003
4. 0001, 0002, 0003 & 0004
5. 0001, 0002, 0003, 0004 & 0005
I hope someone can point me in the right direction with this as I
currently don't have much more hair left to pull out.
Many thanks, Dean...
I've been trying to solve what is probably an extremely simple problem
and desperately need some assistance.
My problem is that I have a Word UserForm with 5 textboxes that all
have an initial string set to 0, now what I need is when someone
changes the values in the textboxes and clicks on the OK button that
the values in the textboxes will be formatted to the format 0000
(already got this done), and a string created from the textboxes with
appropriate separators (either a comma or ampersand).
The process would work fine if all five textboxes are always filled
out (i.e. 0001, 0002, 0003, 0004 & 0005) but I need a way to work with
any number of textboxes from 1 to 5 and omit the textboxes that have
not been changed from 0 as shown below:
1. 0001
2. 0001 & 0002
3. 0001, 0002 & 0003
4. 0001, 0002, 0003 & 0004
5. 0001, 0002, 0003, 0004 & 0005
I hope someone can point me in the right direction with this as I
currently don't have much more hair left to pull out.
Many thanks, Dean...