LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Text Box - String to fill turning blank

I have an interesting predicament that I can't figure out.

Below is the code I have which fills out a text box. If ShikiChange
7, i.e. there are more than 7 colors used, then instead of just
displaying all 8 or more, like it does with 4, 5, or 7, the text box
becomes blank.

I added in the MsgBox's to see what was going on, and inside the the
message box TeishutsuTextBoxPhrase looks fine and ShikiChange = 8.

Is this blank text box due to some limitation with a text box, aka too
many characters inputted into it? Where's the glitch causing anything
past ShikiChange = 7 to give a blank text box?

Any help much appreciated.

-------------------------- CURRENT CODE USED
---------------------------------

ShikiChange = 0

For RowTest = 2 To ColorC - 1
If (1, RowTest).value = 1 Then
If ShikiChange = 0 Then
ShikiChange = ShikiChange + 1
TeishutsuTextBoxPhrase = "$B51EY7W:90[$K$h$kJd@5$N$?$a!"(B" & Chr(10) & "ST$B51EY(B
$B7W?'EYA@$$CM$O2<5-$H$9$k!#(B" & Chr(10) & _
(2, RowTest).value) & " : x=" &
(8, RowTest).value) & ",y=" & (Sheets("$BHL@(B
$B?'(B").Cells(9, RowTest).value)
Else
ShikiChange = ShikiChange + 1
TeishutsuTextBoxPhrase = TeishutsuTextBoxPhrase & Chr(10)
& _
(2, RowTest).value) & " : x=" &
(8, RowTest).value) & ",y=" & (Sheets("$BHL@(B
$B?'(B").Cells(9, RowTest).value)
End If
End If
Next RowTest

MsgBox TeishutsuTextBoxPhrase
MsgBox "Number of ST color variations: " & (ShikiChange)


' THIS CREATES THE STANLEY BASE COLOR TEXT BOX.
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHo rizontal, 300, 469 -
13.5 * ShikiChange, 215, 41 + 13.5 * ShikiChange).Select
Selection.Characters.Text = TeishutsuTextBoxPhrase
With Selection.Characters(Start:=1, Length:=12).Font
.Name = "StanleyCorrelation"
.FontStyle = "$BI8=`(B"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
 
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 TO FILL BLANK CELLS IN DATA WITH TEXT STRING Stewcrew Excel Worksheet Functions 8 January 16th 11 05:48 AM
turning a string of cells into a work shift (eg. 9am-7pm) jbmjbj Excel Worksheet Functions 0 January 28th 08 12:41 AM
Change 3 letter text string to a number string Pete Excel Discussion (Misc queries) 3 December 31st 07 07:47 PM
NEED TO FILL BLANK CELLS WITH TEXT STRING Stewcrew Excel Discussion (Misc queries) 1 May 17th 07 01:10 AM
Disabling formulas and turning file into text only Christine Excel Discussion (Misc queries) 3 April 1st 05 05:46 AM


All times are GMT +1. The time now is 05:06 PM.

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"