I have an MSAccess 2010 database in which I was using a VBA reference, early binding, and this code to align the text in the cell to the left: newWkSheet.Cells(2, 2).HorizontalAlignment = xlLeft
Due to MSAccess version and reference conflicts I removed the VBA reference and now I am using late binding. Everything is working well now except to align the text in the cell to the left. The following two sample codes below do now not work with late binding:
newWkSheet.Cells(2, 2).HorizontalAlignment = xlLeft
newWkSheet.Range("B1").HorizontalAlignment = xlLeft
Any ideas...? Thanks
Due to MSAccess version and reference conflicts I removed the VBA reference and now I am using late binding. Everything is working well now except to align the text in the cell to the left. The following two sample codes below do now not work with late binding:
newWkSheet.Cells(2, 2).HorizontalAlignment = xlLeft
newWkSheet.Range("B1").HorizontalAlignment = xlLeft
Any ideas...? Thanks