Im updating a sheets rowsize but when its saved, the size of each row isnt adjusted. Any Ideas?
Thanks
wb.Sheets(1).Range("U:U").ColumnWidth = 10.56
wb.Sheets(1).Range("W:W").ColumnWidth = 50
wb.Sheets(1).Range("X:X").ColumnWidth = 50
Set targetRange = Range("A:A")
For Each targetCell In targetRange
If Not IsEmpty(targetCell) Then
targetCell.RowHeight = 13.8
End If
Next targetCell
With wb.Sheets(1).Columns("A:Z")
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
End With
'Save and Close Workbook
wb.Close SaveChanges:=True
Thanks
wb.Sheets(1).Range("U:U").ColumnWidth = 10.56
wb.Sheets(1).Range("W:W").ColumnWidth = 50
wb.Sheets(1).Range("X:X").ColumnWidth = 50
Set targetRange = Range("A:A")
For Each targetCell In targetRange
If Not IsEmpty(targetCell) Then
targetCell.RowHeight = 13.8
End If
Next targetCell
With wb.Sheets(1).Columns("A:Z")
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
End With
'Save and Close Workbook
wb.Close SaveChanges:=True