Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Leftover formatting in code


In Print Preview check your settings to see if the "Page" settings are
set correctly.
It sounds like you changed your mind after you ran the macro, changed
the macro, but did not change the Page settings.


--
bgeier
------------------------------------------------------------------------
bgeier's Profile: http://www.excelforum.com/member.php...o&userid=12822
View this thread: http://www.excelforum.com/showthread...hreadid=545704

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Leftover formatting in code

Outstanding! I was so focused on the code issue, I forgot to look in the most
obvious place..............so much for exhausted brain power.....

"bgeier" wrote:


In Print Preview check your settings to see if the "Page" settings are
set correctly.
It sounds like you changed your mind after you ran the macro, changed
the macro, but did not change the Page settings.


--
bgeier
------------------------------------------------------------------------
bgeier's Profile: http://www.excelforum.com/member.php...o&userid=12822
View this thread: http://www.excelforum.com/showthread...hreadid=545704


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Leftover formatting in code


I know that feeling TOO well!!!

Sometimes one sees the forest but not the trees, so why does no put a
sign on the trees?


--
bgeier
------------------------------------------------------------------------
bgeier's Profile: http://www.excelforum.com/member.php...o&userid=12822
View this thread: http://www.excelforum.com/showthread...hreadid=545704

Reply
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 06:27 AM.

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"