PDA

View Full Version : Is it possible to customize A PART of a textBox?



firas
09-26-2011, 10:19 PM
Hi All
I have made a user form that contains many fields, textbox, dropdown lists, etc. One of these fields a textbox called "name" in which the user has to write his/her full name. now I have anther textbox called "author" in which the user enters his/her name alone or with others. Taking in account that author could be a single author, or first author, second author or something else. My question is:
Is it possible to customize the part of "author Textbox" to only change the font format of the author using for example on the name filled in the first textbox called "name".
Example"
Name: John A.

Case#1 Author: Albert, B, John, A.
Case #2 Author: John, A.
Case #3 Author: John, A, Daniel, D.
Case #4 Author: Daniel, D, Albert, B, John, A.

Any suggestions?

Thanks In advanced.

Dave
09-27-2011, 10:15 PM
Execute a VBA FIND for the contents of the name textbox and change the font of whatever it finds. HTH. Dave

firas
09-27-2011, 11:05 PM
Thanks Dave
I do not know how to say it. It is easy for you to creat a VBA find code, but for me it is a Dilemma. could you post an example?
Thanks again
:friends:

Dave
09-29-2011, 06:06 AM
My apologies as I think on re-read that I may have misunderstood your needs. I assumed that from the userform you wanted to change some font in the document not in another textbox on the userform (which it seems you clearly indicated). I don't think that it's possible to have more than 1 font in a textbox. Dave

firas
09-29-2011, 06:31 AM
That's alright
thanks a lot :hi: