Has anyone used (setvar "FILEDIA" 0) (command "-publish" etc etc) The problem is I get the prompt : Enter name of sheet list <>: I can offer a viarable of the tabs selected, but not a sheet list. I have something similar using doslib and the PLOT command, but would it be possible to do something similar using the PUBLISH command? thanks Russ (if (equal Printer "printer1") (progn (setq layouts_to_plot (dos_multilist "Plot Layouts" "Select layouts" (layoutlist))) (setq NumTabs (length layouts_to_plot)) ;if more than tab selected then use "layout box" (if (> NumTabs 1) (progn (foreach LLN layouts_to_plot (layoutlist) (setvar "CTAB" LLN) (command "-plot" "no" "" "" "printer1.pc3" "" "" "" "") );foreach );progn );if