Hi all,
i have a script to import a workbook which works fine, but when the data is imported i would like to have all the data in the cells aligned to the left of the cells, as im new to vba i can work this out. if there experts that can help with this?
Below is the script i'm using to import.
I would like this to aligned all cells to the left and centered when imported.
Sub tst()
With workbooks.open("C:\example.xls")
with .sheets(1).usedrange
thisworkbook.sheets(1).cells(rows.count,1).end(xlup).offset(1).resize(.rows.count,columns.count)=.value
end with
.close False
End with
End Sub
Bookmarks