Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
NEED TO FILL BLANK CELLS IN DATA WITH TEXT STRING | Excel Worksheet Functions | |||
turning a string of cells into a work shift (eg. 9am-7pm) | Excel Worksheet Functions | |||
Change 3 letter text string to a number string | Excel Discussion (Misc queries) | |||
NEED TO FILL BLANK CELLS WITH TEXT STRING | Excel Discussion (Misc queries) | |||
Disabling formulas and turning file into text only | Excel Discussion (Misc queries) |