> I am not sure I was following your example. But if your printing is
> automated too, perhaps you should share that code because it sounds to me
[quoted text clipped - 45 lines]
> >
> > Thanks,
I am not sure what you'd have to do, but if it were me, I'd create a print
macro and then create different Custom Views (See help for how to do this).
Then in the macro evaluate each division to see if there is unhidden lines or
not. If so, switch to that division's custom view and then print the report.
Otherwise, you'd just skip it. Here is a sample:
Sub PrintOutReports
Dim Div1Visible as double
Dim Div2Visible as double
'You'll need code here to set values to Div?Visible
If Div1Visible>0 then
ActiveWorkbook.CustomViews("Division1").Show
ActiveWindow.SelectedSheets.PrintPreview
end if
if Div2Visible>0 then
ActiveWorkbook.CustomViews("Division2").Show
ActiveWindow.SelectedSheets.PrintPreview
end if
End sub
You can change the printpreview to print outs as needed. HTH
> Hi,
>
[quoted text clipped - 52 lines]
> > >
> > > Thanks,
manfareed - 21 May 2008 10:00 GMT
Hi Mike,
Thanks for your help. I'll follow your advice.
Regards,
Manir
> I am not sure what you'd have to do, but if it were me, I'd create a print
> macro and then create different Custom Views (See help for how to do this).
[quoted text clipped - 75 lines]
> > > >
> > > > Thanks,