All is now clear.
add the line DoEvents to your code as shown below...
Sub Print_Preview(sAreaStart As String, sAreaEnd As String, sTitleRows As String, sTitleCols As String)
Dim sTitleRowsCheck, sTitleColsCheck As String
frmWait.Show vbModeless
DoEvents
With ActiveSheet.PageSetup
then you'll find it works. The DoEvents allows the Modeless form to update itself before continuing the rest of the work.
Cheers
Matthew
PS sorry for the wait, i've been a bit busy today.
|