LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Leftover formatting in code

I have this code:
Private Sub Commandbutton1_Click()
With ActiveSheet
Select Case UCase(.Range("c1").Value)
Case Is = "1"
.Range("c2:h92").PrintOut preview:=True
Case Is = "2"
.Range("j2:o92").PrintOut preview:=True

End Select
End With

End Sub

It works fine, but it shrinks the resulting printout donw to one page. I
originally wanted to do this, entered the code, then changed my mind and
deleted it. However, it keeps forcing this to print on only one page.....and
too small to read.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip Code Formatting JWCrosby New Users to Excel 8 July 1st 06 11:17 AM
Leftover Workbooks with Opening Excel in IE Browser Window Drew Lettington Excel Programming 0 May 24th 06 08:03 PM
Zip Code Formatting weeshie73[_4_] Excel Programming 1 April 26th 06 06:09 PM
zip code formatting MLD Excel Discussion (Misc queries) 1 August 19th 05 04:00 PM
Formatting convention for code Jimbola Excel Programming 2 January 22nd 05 01:55 AM


All times are GMT +1. The time now is 11:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"