PC Review


Reply
Thread Tools Rate Thread

Selected Text to Bold

 
 
JamesJ
Guest
Posts: n/a
 
      9th Feb 2006
Hi. Without using the RichText control how can I
change selected text to bold? Every time I highlight
text and press ctrl+b I get an Object Required error.

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)

If KeyCode = vbKeyB And Shift = 2 Then
Me!MyTextBox.SelLength.FontWeight = 700
End If

End Sub

What I would like to accomplish is to use a text box for notes or
memos and want to toggle certain text to bold and be able to
change the font of selected text.
Can I do this with a standard text box??

James


 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      9th Feb 2006
It's not possible.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"JamesJ" <jjy@adelphia_Darwin.net> wrote in message
news:(E-Mail Removed)...
> Hi. Without using the RichText control how can I
> change selected text to bold? Every time I highlight
> text and press ctrl+b I get an Object Required error.
>
> Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
>
> If KeyCode = vbKeyB And Shift = 2 Then
> Me!MyTextBox.SelLength.FontWeight = 700
> End If
>
> End Sub
>
> What I would like to accomplish is to use a text box for notes or
> memos and want to toggle certain text to bold and be able to
> change the font of selected text.
> Can I do this with a standard text box??
>
> James
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why when I bold some text does Word 2003 bold all text? Fix? =?Utf-8?B?TWV0cmljbWFu?= Microsoft Word Document Management 1 3rd Jun 2005 04:23 PM
How to use Bold and non bold text in a single textbox in office 20 =?Utf-8?B?SGFyb29u?= Microsoft Access VBA Modules 3 28th Jan 2005 04:39 PM
How to use Bold and non bold text in a single textbox in office 20 =?Utf-8?B?Sm9l?= Microsoft Access Reports 1 28th Jan 2005 04:26 PM
Re: bold text, non bold underline possible? Grace L. Judson Microsoft Word Document Management 0 25th Jun 2004 06:30 PM
Remove bold from text, but it goes back to bold. =?Utf-8?B?Q2hhcmxlcw==?= Microsoft Word Document Management 1 16th Jan 2004 02:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 AM.