It all depends on which settings you're changing and if you're using the Printer object to do so, you could probably save the original settings in variables and then restore them before you unload your app. If you are changing the default printer, then you can probably save the name in a variable and then, before unloading, iterate throught the Printers collection and set the Printer object to the one that matches the original Printer object's name.
I think something like this may do the trick for you:
'To save the original default printer's name
Public P As String
P = Printer.DeviceName
'Then before you unload, to reset the default printer
Dim Prt As Printer
For Each Prt In Printers
If Prt.DeviceName = P Then
'Set the printer object (which represents _
'the default printer) to Prt
End If
Next Prt
|