Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Manipulating text - 2 queries

Tha characters property is very useful for selective formatting
multiple-line text in cells, but so far I have not been able to use it eithr
within shapes (e.g rectangle), or user forms. Is this a limitation of
Excel, or have I just not tried hard enough?

Below is a sample of the code I have successfully implemented in a large
cell.

With Worksheets("ER").Range("C2")
.Characters(149 + I, 7).Font.ColorIndex = 1 ' BLACK
.Characters(149 + I, 7).Font.Bold = True
.Characters(168 + I, 6).Font.ColorIndex = 1 ' BLACK
.Characters(168 + I, 6).Font.Bold = True
.Characters(186 + I, 4).Font.ColorIndex = 1 ' BLACK
.Characters(186 + I, 4).Font.Bold = True
.Characters(199 + I, 7).Font.ColorIndex = 1 ' BLACK
.Characters(199 + I, 7).Font.Bold = True
.Characters(227 + I, 5).Font.ColorIndex = 3 ' RED
.Characters(227 + I, 5).Font.Bold = True
.Characters(251 + I, 5).Font.ColorIndex = 1 ' BLACK
.Characters(251 + I, 5).Font.Bold = True
.Characters(271 + I, 3).Font.ColorIndex = 1 ' BLACK
.Characters(271 + I, 3).Font.Bold = True
.Characters(289 + I, 5).Font.ColorIndex = 1 ' BLACK
.Characters(289 + I, 5).Font.Bold = True
.Characters(313 + I, 4).Font.ColorIndex = 5 ' BLUE
.Characters(313 + I, 4).Font.Bold = True
End With

Second query.

Can Excel achieve visual effects, e.g.smoothly scrolling a 4 line window
through a long text string which fills say 20 lines, or mixing between 2
different pages?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Manipulating text - 2 queries

1) ActiveSheet.Shapes(1).TextFrame.Characters(Start:= 1,
Length:=3).Font.ColorIndex = 3

2) I'm certain it's possible, but it would probably have quirks. I suggest
looking into an IE imbedded object and use some HTML whizz.


"Hotbird" wrote in message
...
Tha characters property is very useful for selective formatting
multiple-line text in cells, but so far I have not been able to use it

eithr
within shapes (e.g rectangle), or user forms. Is this a limitation of
Excel, or have I just not tried hard enough?

Below is a sample of the code I have successfully implemented in a large
cell.

With Worksheets("ER").Range("C2")
.Characters(149 + I, 7).Font.ColorIndex = 1 ' BLACK
.Characters(149 + I, 7).Font.Bold = True
.Characters(168 + I, 6).Font.ColorIndex = 1 ' BLACK
.Characters(168 + I, 6).Font.Bold = True
.Characters(186 + I, 4).Font.ColorIndex = 1 ' BLACK
.Characters(186 + I, 4).Font.Bold = True
.Characters(199 + I, 7).Font.ColorIndex = 1 ' BLACK
.Characters(199 + I, 7).Font.Bold = True
.Characters(227 + I, 5).Font.ColorIndex = 3 ' RED
.Characters(227 + I, 5).Font.Bold = True
.Characters(251 + I, 5).Font.ColorIndex = 1 ' BLACK
.Characters(251 + I, 5).Font.Bold = True
.Characters(271 + I, 3).Font.ColorIndex = 1 ' BLACK
.Characters(271 + I, 3).Font.Bold = True
.Characters(289 + I, 5).Font.ColorIndex = 1 ' BLACK
.Characters(289 + I, 5).Font.Bold = True
.Characters(313 + I, 4).Font.ColorIndex = 5 ' BLUE
.Characters(313 + I, 4).Font.Bold = True
End With

Second query.

Can Excel achieve visual effects, e.g.smoothly scrolling a 4 line window
through a long text string which fills say 20 lines, or mixing between 2
different pages?




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
Manipulating Text to create HLOOKUP CW Excel Worksheet Functions 8 September 22nd 08 01:23 PM
Help with manipulating text in Excel 2003 Big UT Fan Excel Discussion (Misc queries) 4 April 9th 08 07:33 PM
Manipulating certain rows only Shaz Excel Worksheet Functions 5 February 18th 08 06:31 AM
Manipulating Text between sheets, in a workbook mdjennings Excel Discussion (Misc queries) 2 June 14th 05 10:20 PM
Manipulating DOS from VBA Dave Peterson[_3_] Excel Programming 0 October 17th 03 01:46 AM


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

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

About Us

"It's about Microsoft Excel"