Hi All,
I have got MS Query written by 7 sheets of Excel (Sun to Sat)
each day have got different values comes ..some time 2 rows some time 6rows
My following VBA code is working fine , only problem is the row height I restricted to 1: to 6 as you can see in the code given below:
I would like to change the row size to 53.4 ONLY where the value exist not specific rage 1:6
Problem in red fonts area given below:-
Many thanks
F
I have got MS Query written by 7 sheets of Excel (Sun to Sat)
each day have got different values comes ..some time 2 rows some time 6rows
My following VBA code is working fine , only problem is the row height I restricted to 1: to 6 as you can see in the code given below:
I would like to change the row size to 53.4 ONLY where the value exist not specific rage 1:6
Problem in red fonts area given below:-
Code:
'Check total waiters workbook is open select if available, exit if not
'For Each wbk In wbReport
If InStr(UCase(swb.Name), "Weekly C Floor Report.xls") <> 0 Then
For Each wSheet In swb.Worksheets
wks = wSheet.Name
'''''' START OF CODE
Sheets(wks).Select
ActiveSheet.PageSetup.Orientation = xlLandscape
With ActiveSheet.PageSetup
.LeftMargin = Excel.Application.InchesToPoints(0.2)
.RightMargin = Excel.Application.InchesToPoints(0.2)
.FitToPagesWide = 1
.FitToPagesTall = 3
.Zoom = 85
.CenterHeader = "&A"
Columns("C:C").ColumnWidth = 10.11
Columns("D:D").ColumnWidth = 20.67
Columns("F:F").ColumnWidth = 20.67
Columns("H:H").ColumnWidth = 11.78
'Columns("N:N").ColumnWidth = 10.78
Columns("G:G").ColumnWidth = 31.78
[COLOR=darkred] [B]Rows("1:6").Select[/B][/COLOR]
[B][COLOR=darkred] Selection.RowHeight = 53.4[/COLOR][/B]
End With
Many thanks
F