Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Format text using VBA

Is it possible to embolden part of the text held in a cell using VBA?

For example, if a cell contains two words " dog cat" is it possible to
change the font of "dog" to bold without changing the attributes of
"cat"?

Alan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Format text using VBA

With ActiveCell

.Characters(5, 3).Font.Bold = True
End With


--
__________________________________
HTH

Bob

"Alan" wrote in message
...
Is it possible to embolden part of the text held in a cell using VBA?

For example, if a cell contains two words " dog cat" is it possible to
change the font of "dog" to bold without changing the attributes of
"cat"?

Alan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Format text using VBA

On 30 Apr, 09:57, "Bob Phillips" wrote:
* * With ActiveCell

* * * * .Characters(5, 3).Font.Bold = True
* * End With

--
__________________________________
HTH

Bob

"Alan" wrote in message

...



Is it possible to embolden part of the text held in a cell using VBA?


For example, if a cell contains two words " dog cat" is it possible to
change the font of "dog" to bold without changing the attributes of
"cat"?


Alan- Hide quoted text -


- Show quoted text -


Thanks Bob, that is a great help.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Change Date Format to Specific Text Format When Copying [email protected] Excel Discussion (Misc queries) 4 December 23rd 08 03:43 PM
how to format a Docmd to pull in an Access file in Text format Campbellj4 Excel Programming 0 November 2nd 05 04:22 PM
how to format a Docmd to pull in an Access file in Text format Campbellj4[_2_] Excel Programming 0 November 2nd 05 04:22 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM


All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"