A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Screen Size



 
 
Thread Tools Display Modes
  #1  
Old April 14th, 2009, 10:29 AM posted to microsoft.public.excel.worksheet.functions
[email protected]
external usenet poster
 
Posts: 17
Default Screen Size

Is there a way of having the cells you want to see (Width) fit
whatever screen it is connected to?
ie: I have a spreadsheet which has many columns but I only want x
number showing. If I change the screen size I dont want to resize the
column widths to suit the new screen. Is there any code that will do
this?
Thanks in advance
EPJ
  #2  
Old April 14th, 2009, 12:08 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Screen Size

You can hide the rest of the columns which are not in use
--
If this post helps click Yes
---------------
Jacob Skaria


" wrote:

Is there a way of having the cells you want to see (Width) fit
whatever screen it is connected to?
ie: I have a spreadsheet which has many columns but I only want x
number showing. If I change the screen size I dont want to resize the
column widths to suit the new screen. Is there any code that will do
this?
Thanks in advance
EPJ

  #3  
Old April 15th, 2009, 01:53 AM posted to microsoft.public.excel.worksheet.functions
Dave
external usenet poster
 
Posts: 2,331
Default Screen Size

Hi,
Here is some code I use to ensure that at least Columns up to and including
Column P are always visible. It works by using the VisibleRange thingy to
manipulate the zoom %.
Change the two Columns.Count refs to suit your page.
Put this code into an event macro for the sheet you want it to work on.


ActiveWindow.Zoom = 100
A = 100
If Windows(1).VisibleRange.Columns.Count 17 Then
Do Until Windows(1).VisibleRange.Columns.Count 16
ActiveWindow.Zoom = A
A = A - 1
Loop
End If

Hope this helps.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.