C
call_me_sol
Hi -
I'm creating a userform with various textboxes, docvariables, and
listboxes. The problem I am now faced with is two fold:
Problem 1) I need a way to count count the data entered into the
textbox and the result of the count will perform a specific action.
For example: user enters 10 lines of text (each ended with a carriage
return) the resulted output would provide the word "apple". If a user
enters 100 lines of text the resulted output would provide the word
"orange". Basically, I don't know how to make the userform and
textbox smart enough to count.
Problem 2) With the data that's entered into the textbox, I need to
format it, and return it to the document. Ordinarily, I would do this
with docvariables. But, since I don't know how many lines a user is
going to enter, I don't know how many docvariables to build into the
document. So, what I need, is no matter how many lines the user
enters, I need the code to output the lines reformatted the proper
way. For example:
User enters:
1.1.1.0/24
2.2.0.0/16
Form ouputs:
ip prefix list AS2345 permit ip 1.1.1.0/24
ip prefix list AS2345 permit ip 2.2.0.0/16
As always, thanks for the help!
I'm creating a userform with various textboxes, docvariables, and
listboxes. The problem I am now faced with is two fold:
Problem 1) I need a way to count count the data entered into the
textbox and the result of the count will perform a specific action.
For example: user enters 10 lines of text (each ended with a carriage
return) the resulted output would provide the word "apple". If a user
enters 100 lines of text the resulted output would provide the word
"orange". Basically, I don't know how to make the userform and
textbox smart enough to count.
Problem 2) With the data that's entered into the textbox, I need to
format it, and return it to the document. Ordinarily, I would do this
with docvariables. But, since I don't know how many lines a user is
going to enter, I don't know how many docvariables to build into the
document. So, what I need, is no matter how many lines the user
enters, I need the code to output the lines reformatted the proper
way. For example:
User enters:
1.1.1.0/24
2.2.0.0/16
Form ouputs:
ip prefix list AS2345 permit ip 1.1.1.0/24
ip prefix list AS2345 permit ip 2.2.0.0/16
As always, thanks for the help!