Greetings! I've created a procedure that dumps data into an excel spreadsheet. I am using the CreateObject function to create the spreadsheet at run-time. After I've written all of the data I'm using the EntireColumn.AutoFit() function to autofit all of the columns.
Does anyone know the command for me to adjust all of the columns to left align? I've searched the web for a while but haven't been able to find here.
Here is some of my code.
Thanks in advanced for your help.
(txmed)
Does anyone know the command for me to adjust all of the columns to left align? I've searched the web for a while but haven't been able to find here.
Here is some of my code.
Code:
Dim xlsApp As Object
Dim xlsBook As Object
Dim xlsSheet As Object
xlsApp = CreateObject("Excel.Application")
xlsBook = xlsApp.Workbooks.Add
xlsSheet = xlsBook.Worksheets(1)
' other code here.
xlsSheet.Cells.EntireColumn.AutoFit()
[COLOR=red]
' place code here to set left align.
[/color]
Thanks in advanced for your help.
(txmed)