Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Multiple text format in Excel cells

I'm writing now convertor from my own Report Component to Microsoft Excel
format and have a problem: cannot programmically change font and text format
for PARTS of text in cell. It's easy to do by hand, but how can I do it
programmically?

Please help me! I have to appear checkboxes and comboboxes in Excel sheet,
and decided to do it in following manner:

[x] CheckboxName,
where [x] - symbol with code 0xFD of Wingdings font.

Or, maybe, there are other ideas?

David Avsajanishvili
  #2   Report Post  
Posted to microsoft.public.excel.programming
KL KL is offline
external usenet poster
 
Posts: 201
Default Multiple text format in Excel cells

Hi David,

Try the following code which resulted from macro recorder (I have cleaned it
a bit).

Ragards,
KL

Sub Macro2()
ActiveCell = "Text Test"
With ActiveCell
With .Characters(Start:=1, Length:=4).Font
.Size = 10
.ColorIndex = 0
End With
With .Characters(Start:=6, Length:=4).Font
.FontStyle = "Bold"
.Size = 10
.ColorIndex = 3
End With
End With
End Sub


"David Avsajanishvili" <David
wrote in message ...
I'm writing now convertor from my own Report Component to Microsoft Excel
format and have a problem: cannot programmically change font and text
format
for PARTS of text in cell. It's easy to do by hand, but how can I do it
programmically?

Please help me! I have to appear checkboxes and comboboxes in Excel sheet,
and decided to do it in following manner:

[x] CheckboxName,
where [x] - symbol with code 0xFD of Wingdings font.

Or, maybe, there are other ideas?

David Avsajanishvili



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Multiple text format in Excel cells

Thank you, KL!

The code works, and it's really, what I need!
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
How to get Excel CSV format in to write text cells in quotes? jah Excel Discussion (Misc queries) 1 October 10th 06 03:20 PM
How do I insert a symbol AT THE END of text for multiple cells in Excel? [email protected] Excel Worksheet Functions 3 June 19th 06 04:47 PM
Excel cells should take number format and/or optional text eg Dec. Donna Fernandez Excel Discussion (Misc queries) 0 December 1st 05 04:50 PM
How can you append text in multiple cells in excel? Shane New Users to Excel 4 October 19th 05 10:49 PM
How do I insert a symbol BEFORE text for multiple cells in Excel? amspalinger Excel Worksheet Functions 6 May 17th 05 07:26 PM


All times are GMT +1. The time now is 05:21 AM.

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"