View Single Post
 
Old 05-29-2018, 03:55 AM
slaycock slaycock is offline Windows 7 64bit Office 2016
Expert
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

Apologies. I don't check the actual printout statement as I don't want to waste reams of paper.

The help page for printout is here

https://msdn.microsoft.com/en-us/VBA...ut-method-word

I suspect the problem is that the pages parameter should be a variant but we are passing a string.

Try changing to

pages:=Cvar(my_form.txtPages)
Reply With Quote