ok this is as far as i am now, 2 issues, ok i need 2 cols & rows for the 1st sheet but how do i change this as needed for the other 24 sheets??
Any hints or ideas apprecated
Sub Board()
With Application
.ScreenUpdating = False
.DisplayAlerts = False
.EnableEvents = False
End With
Dim myCols(2) As String
Dim myRows(2) As String
myCols.Add ("C:E")
myCols.Add ("Q:AR")
myRows.Add ("24:25")
myRows.Add ("46:48")
setUpBoardView sheet3, myCols, myRows, "a1..g55"
With Application
.ScreenUpdating = True
.DisplayAlerts = True
.EnableEvents = True
End With
End Sub
Sub setUpBoardView(sht As Worksheet, myCols() As String, myRows() As String, printRange As String)
Dim i As Integer
sht.Select
For i = 0 To myCols.ubound 'ITHINK THIS IS WRONG ALSO
Columns(myCols(i)).Hidden = True
Next
For i = 0 To myRows.ubound
rows(myRows(i)).Hidden = True
Next
PageSetup printRange, xlPortrait, 1, 2, 0.75
End Sub
Sub PageSetup(sPrintArea As String, Orientation As Excel.XlPageOrientation, PagesWide As Integer, pagesTall As Integer, topMargin As Double)
With ActiveSheet.PageSetup
.PrintArea = sPrintArea
.Orientation = Orientation
.FitToPagesWide = PagesWide
.FitToPagesTall = pagesTall
.topMargin = Application.InchesToPoints(topMargin)
End With
End Sub