Can anyone help with details on how to change the printer properties using VBA code?
For background, I am using Access to load and run Word and then run mailmerges in word using info from Access. For each merged document, I need to print one copy on headed paper, one copy on plain. This was working fine, and I had originally recorded a macro to print both copies, by changing the paper source property (FirstPageTray, OthersPageTray)
My Network administrator has changed the printer settings on the printer that I am using, so that now, instead of naming the tray using Page Setup in Word, Access,etc.. you name the paper type that you want (plain or LetterHead) in Printer Properties (i.e. the global Windows printer set up rather than the local application page setup). The administrator has now gone on holiday for two weeks.
The problem is that I can't change the printer settings in VBA code from Word. I have tried recording a macro, but any changes to the paper type and printer settings are ignored by the macro (presumably because they are printer settings for all applications, not just Word).
Can anyone give me any pointers as to how you change the printer properties from Access or Word VBA. Any help would be very much appreciated
For background, I am using Access to load and run Word and then run mailmerges in word using info from Access. For each merged document, I need to print one copy on headed paper, one copy on plain. This was working fine, and I had originally recorded a macro to print both copies, by changing the paper source property (FirstPageTray, OthersPageTray)
My Network administrator has changed the printer settings on the printer that I am using, so that now, instead of naming the tray using Page Setup in Word, Access,etc.. you name the paper type that you want (plain or LetterHead) in Printer Properties (i.e. the global Windows printer set up rather than the local application page setup). The administrator has now gone on holiday for two weeks.
The problem is that I can't change the printer settings in VBA code from Word. I have tried recording a macro, but any changes to the paper type and printer settings are ignored by the macro (presumably because they are printer settings for all applications, not just Word).
Can anyone give me any pointers as to how you change the printer properties from Access or Word VBA. Any help would be very much appreciated