Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default formating cells with procedure

Curt, it seems like I ended up using "xlVAlignTop" once before when I had
that problem. The numerical code is " -4160" , you might try that also. I
can't think of anything else at present.

"Curt" wrote:

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

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
Formating Cells Nocturnica Excel Worksheet Functions 3 April 25th 08 07:10 PM
conditional formating cells i Excel based on other cells values Elias Petursson Excel Worksheet Functions 3 May 23rd 06 06:45 PM
SQL stored procedure using values from cells into Pivot Table kworth Excel Programming 0 March 2nd 06 02:42 AM
Defined Named cells lined to a Function Procedure swiftcode Excel Worksheet Functions 4 October 11th 05 08:30 AM


All times are GMT +1. The time now is 11:44 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"