XLDialog for setting the Print Area of a worksheet

P

Philip

Hi,

can anyone point me in the direction of which XLDialog can set the PrintArea
of a worksheet from VBA (with no user entry) - I want to use the Show method
and pass in the arguments

thanks
Philip
 
F

FSt1

hi
in xl help type "built-in dialog box arguments lists"
there isn't a xldialog for print_area only.
excel conciders print_area as a named range and Print_area shows up in the
xldialogDefineName dialog box. the name "Print_Area" is an excel reserved
name.
in a macro, print_area is set like
ActiveSheet.PageSetup.PrintArea = "$A$1:$E$44"
or if pre-selected
ActiveSheet.PageSetup.PrintArea = selection

regards
FSt1
 
P

Philip

Thanks, that's good.

FSt1 said:
hi
in xl help type "built-in dialog box arguments lists"
there isn't a xldialog for print_area only.
excel conciders print_area as a named range and Print_area shows up in the
xldialogDefineName dialog box. the name "Print_Area" is an excel reserved
name.
in a macro, print_area is set like
ActiveSheet.PageSetup.PrintArea = "$A$1:$E$44"
or if pre-selected
ActiveSheet.PageSetup.PrintArea = selection

regards
FSt1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top