Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

PrintOut problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Filips Benoit - 09 Nov 2007 10:33 GMT
Dear All,

Sorry for my Enghlih !

I have a excel workbook being a having all details obout 1 house te bild.
8 commandbuttons in cellrow1 of columns S>Z prints each another selection of
the rows.
This works OK.

Now 1 group wants to be able to choose the printout between A4 or A3 because
A4 is to difficult to read.

How can I do this in de Code ..

Thanks,

Filip
Bill Renaud - 10 Nov 2007 06:20 GMT
Try something like the following simple code (untested): (You could design
a form with the various choices.)

Sub SetPaperSize()
 Dim strPaperSize As String

 strPaperSize = InputBox(Prompt:="Select paper size (A3 or A4):", _
                           Title:="Select Paper Size", _
                           Default:="A3")

 Select Case strPaperSize
   Case "A3"
     ActiveSheet.PageSetup.PaperSize = xlPaperA3
   Case "A4"
     ActiveSheet.PageSetup.PaperSize = xlPaperA4
 End Select

 'Do printout.
End Sub

Signature

Regards,
Bill Renaud

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.