![]() |
formating cells with procedure
built the following with macro builder in excel. Does not do as it says. Text
starts at bottom not top. Overruns cell with text. Row & column work OK. Is there a certain order that must be used? Thanks to every one Curt Sheets("Desc").Select Range("A2").Select Rows("2:2").RowHeight = 78 Columns("A:A").ColumnWidth = 39 Selection.NumberFormat = "@" With Selection .HorizontalAlignment = xlGeneral .VerticalAlignment = xlTop .WrapText = True .Orientation = 0 .AddIndent = False .ShrinkToFit = False .MergeCells = False With .Validation ' .Delete .Add Type:=xlValidateTextLength, AlertStyle:=xlValidAlertStop, _ Operator:=xlLessEqual, Formula1:="234" .IgnoreBlank = False .InCellDropdown = False .InputTitle = "Description" .ErrorTitle = "To Much" .InputMessage = _ "Limited to 234 characters & spaces. Beyond or below cell will not print" .ErrorMessage = "Below cell won't print" .ShowInput = True .ShowError = True End With End With |
All times are GMT +1. The time now is 07:49 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com