Question : Not sure of what the numeric value would be for align left.

Once again this spreadsheet is going to be the death of me yet.  But here is my problem.  I know that if I use the following code.

.HorizontalAlignment = -4108
.VerticalAlignment = -4108

This will center the text  in excel by using automation.  Does any body know what the code would be to align left or right?

Thank you for all the help you guys have been giving me.

Answer : Not sure of what the numeric value would be for align left.

xlHAlignLeft = -4131     xlLeft = -4131
xlHAlignRight = -4152     xlRight = -4152
xlHAlignJustify = -4130
xlHAlignGeneral = 1
Random Solutions  
 
programming4us programming4us