D
dave
Hello
I'm trying to write data in excel sheet and formatting cells
Below is the code snippet:
Set objXL = CreateObject("Excel.Sheet")
objXL.Application.Visible = True
objXL.Application.Columns("A:G").EntireColumn.AutoFit
objXL.Application.Columns("A:G").EntireColumn.Font.Name = "Verdana"
objXL.Application.Columns("A:G").EntireColumn.Font.Size = "8"
objXL.Application.Columns("A:G").VerticalAlignment = xlTop 'gives
errors
objXL.Application.Range("A6:G6").Font.Bold = True
objXL.Application.Range("A6:G6").Font.Italic = True
objXL.Application.Range("A6:G6").Font.Name = "Times New Roman"
objXL.Application.Range("A6:G6").Font.Size = 11
objXL.Application.Range("A6:G6").Font.Color = RGB(0, 0, 128)
But I'm able to set verticalalignment property of the cell..Rest of the code
works fine...
Any ideas
Thanx
I'm trying to write data in excel sheet and formatting cells
Below is the code snippet:
Set objXL = CreateObject("Excel.Sheet")
objXL.Application.Visible = True
objXL.Application.Columns("A:G").EntireColumn.AutoFit
objXL.Application.Columns("A:G").EntireColumn.Font.Name = "Verdana"
objXL.Application.Columns("A:G").EntireColumn.Font.Size = "8"
objXL.Application.Columns("A:G").VerticalAlignment = xlTop 'gives
errors
objXL.Application.Range("A6:G6").Font.Bold = True
objXL.Application.Range("A6:G6").Font.Italic = True
objXL.Application.Range("A6:G6").Font.Name = "Times New Roman"
objXL.Application.Range("A6:G6").Font.Size = 11
objXL.Application.Range("A6:G6").Font.Color = RGB(0, 0, 128)
But I'm able to set verticalalignment property of the cell..Rest of the code
works fine...
Any ideas
Thanx