Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
MergeCell range
I got a form that Im using to put text in a cell (one word only), how can I
tell how many cells this word occupied (columns) so I can do a mergecell for the number of cells? Im going to then set that to a MaxLen and if the next word occupies more cells then the previous that will be my new MaxLen. If MaxLen < NumberOfCell Then MaxLen = NumberOfCell Range(Cells(Row , StartCol), Cells(Row ,(StartCol + Maxlen)).Select With Selection .HorizontalAlignment = xlGeneral .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With -- thank You gus |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
MergeCell performance | Excel Programming | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |