I found the following in a book:
With PageSetupdialog1
.PageSettings=PD1.DefaultPageSettings
if .ShowDialog() = DialogResultOK then _
PD1.DefaultPageSettings= .PageSettings
end with
Seems to me that PageSetupDialog1.PageSettings
and PD1.DefaultPageSettings reference the same object
so the statement
PD1.DefaultPageSettings = .PageSettings
is not needed.
No big deal here except it may point to a misunderstanding on my part.
Can you confirm that it is not needed or tell me why it is?
Thank