Hi guys,
Hoping you could help me.
Im making a User Form with an input box that the user will copy rows of data into.
I want to have a command button, that when the data has been copied, and the user hits the command button, the input box text will change to display the result of a formula....
i.e. (sorry - no screenshot, so imagination required)
The data that the user copies in to the Input box (just as standard text) is:
aaTest1
abTest1
acTest1
And then when the command button is pressed, i would like the userform to run a macro that changes the text in the input box, to the RESULT of a formula for each line of text.
So that after the command button has been pressed, i want the Input Box to now display:
aa
ab
ac
In this example, the formula i want performed on each row of text is =LEFT(line1,2)
But i want the formula to be editible in the macro, as i will be using various formulas at different times.
Can anyone help me with this?
Alternatively, if i have to have a second Input Box that is purely for displaying the output, this is also acceptable.
Thanks so much if anyone can help me with this guys
Cheers
Hoping you could help me.
Im making a User Form with an input box that the user will copy rows of data into.
I want to have a command button, that when the data has been copied, and the user hits the command button, the input box text will change to display the result of a formula....
i.e. (sorry - no screenshot, so imagination required)
The data that the user copies in to the Input box (just as standard text) is:
aaTest1
abTest1
acTest1
And then when the command button is pressed, i would like the userform to run a macro that changes the text in the input box, to the RESULT of a formula for each line of text.
So that after the command button has been pressed, i want the Input Box to now display:
aa
ab
ac
In this example, the formula i want performed on each row of text is =LEFT(line1,2)
But i want the formula to be editible in the macro, as i will be using various formulas at different times.
Can anyone help me with this?
Alternatively, if i have to have a second Input Box that is purely for displaying the output, this is also acceptable.
Thanks so much if anyone can help me with this guys
Cheers