Hello,
I have a vba that export data from a form to a MS Word template. It works great but I would like to add a final code that allows wither to open the file in case users need to modify it, or print is double side.
I cannot specify the printer type as the database will be used my multiple users who use different printers, therefore the printer selection should be automotic.
This is the code I have at the end of my routine:
	
	
	
		
Thank you for your help.
 I have a vba that export data from a form to a MS Word template. It works great but I would like to add a final code that allows wither to open the file in case users need to modify it, or print is double side.
I cannot specify the printer type as the database will be used my multiple users who use different printers, therefore the printer selection should be automotic.
This is the code I have at the end of my routine:
		Code:
	
	
	AnswerYes = MsgBox("Open document to modify?", vbQuestion + vbYesNo, "User Response")
 If AnswerYes = vbYes Then
objWord.Visible = True
 Else
'this is where the code print double side should go
 End IfThank you for your help.
 
	 
 
		 
 
		