Hello I have a VBA in a spreadsheet so that all data i enter aligns to the top and left. However when I copy over data from another spreadsheet it seems to override the vba formatting any ideas?
Thank you.
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Sub Stuff()
Dim wks As Worksheet
For Each wks In Worksheets
wks.Cells.VerticalAlignment = xlTop
wks.Cells.HorizontalAlignment = xlLeft
Next wks
End Sub
[/FONT]
Thank you.
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Sub Stuff()
Dim wks As Worksheet
For Each wks In Worksheets
wks.Cells.VerticalAlignment = xlTop
wks.Cells.HorizontalAlignment = xlLeft
Next wks
End Sub
[/FONT]