Re: Creating A Dynamic String In A Loop With Quotations
It prevents the user from changing margins and setup
Quote from shgWhat's the EnableChanges argument to PrintPreview, Mavyak? I can't find it in the Object Browser ...
[hr]*[/hr] Auto Merged Post;[dl]*[/dl]Mavyak that works wonderfully!
Where would I be able to put the following code, to enable rows 1 through 5 to be repeated incase multiple pages are printed for one sheet?:
Code
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$3" 'ROWS TO REPEAT
.PrintTitleColumns = ""
End With
Quote from MavyakSee if this works for you:
CodeDisplay MoreDim myrange, shNames() As String, x As Integer, y As Integer fosheet = (Sheets("Express 9AM Preview").Index) 'first origin sheet starts after here losheet = (Sheets("Express_International Preview").Index) 'last origin sheet ends before here y = -1 For x = fosheet To losheet 'loop for all origin sheets that may be added If Worksheets(x).Range("CD1").Value > 1 Then y = y + 1 ReDim Preserve shNames(y) shNames(y) = Worksheets(x).Name End If Next Sheets(shNames).PrintPreview enablechanges:=False