Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

how to format text in textbox?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ghost - 18 May 2008 07:22 GMT
Greeting,

I have the following code for showing text in textbox as follows:

On Error GoTo 10
TextBox1.SetFocus
10
If TextBox1 <> "" And TextBox2 <> "" Then
   TextBox1 = TextBox1 & "" & Chr(10) & "" & Now & " :" & Chr(10) & "" &
Trim(TextBox2)
ElseIf TextBox1 = "" And TextBox2 <> "" Then
   TextBox1 = Now & " :" & Chr(10) & "" & Trim(TextBox2)
End If
TextBox2 = ""
TextBox2.SetFocus

What I need is to format the “Now” to be bold and under line, how can I do
that?
Prashant Runwal - 18 May 2008 10:41 GMT
Formatting is applied to entire text box and hence this is not possible using
a single text box. Alternatuvely you can create 3 text boxes where one will
store textbox1, other will store now and third will store textbox2. For all
these 3 textboxes, do not use borders so that three will look like one. For
middle text box you can set property as bold and underline.

> Greeting,
>
[quoted text clipped - 14 lines]
> What I need is to format the “Now” to be bold and under line, how can I do
> that?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.