EDIT-
i guess you can hide all the extra columns
assume your sheet table data is in columns A to Y
- click on Z (so you select the whole column)
- hit Ctrl Shift Right Arrow so that you select all the columns to the right
- then right click on column label XFD
- click Hide
then noone has a choice to go beyond your set limit
or else go to every computer manually and harass the users until they conform to the resolution you want. :o(
original-
you are going to need to put VBA code in your sheet.
heres the website that has the code
http://www.vbaexpress.com/kb/getarticle.php?kb_id=337
you can just copy&paste the code
the site has instructions on how to use it. i have never tried the code.
i will just copy&paste the code for you here in case the web site goes down for some reason.
'<< CODE FOR THE "ThisWorkbook" MODULE >>
'<< NOTE THAT SCREEN HEIGHT & WIDTH ARE >>
'<< MEASURED IN PIXELS, WHILE APPLICATION >>
'<< & WINDOW HEIGHTS AND WIDTHS ARE >>
'<< MEASURED IN POINTS. (pixel ~ 3/4 point) >>
Option Explicit
Private Sub Workbook_Open()
'N.B. a screen resolution of 800x600 pixels was used for this E.G.
'//Obtain current users screen width & height (in pixels)
Run ("MonitorInfo")
With Application
'cancel any xlMaximized
.WindowState = xlNormal
'<
>
'//POSITION WITH RESPECT TO MONITOR
.Top = 1 '< points
.Left = 1 '< points
'//WIDTH
'replace 400 with the width you want
'replace 800 with your screen width
.Width = 400 * ScrWidth / 800
'//HEIGHT
'replace 300 with the height you want
'replace 600 with your screen height
.Height = 300 * ScrHeight / 600
With .ActiveWindow
'cancel any xlMaximized
.WindowState = xlNormal
'<>
'//POSITION WITH RESPECT TO APP. WINDOW
.Top = 1 '< points
.Left = 1 '< points
'ZOOM
'replace 800 with your screen width
.Zoom = 100 * ScrWidth / 800 '< 100 is %
'WIDTH
'replace Application.UsableWidth
'with a number for the width you want
.Width = Application.UsableWidth
'HEIGHT
'replace Application.UsableHeight
'with a number for the height you want
.Height = Application.UsableHeight
End With
End With
End Sub
'<< CODE FOR THE STANDARD MODULE >>
Option Explicit
Public ScrWidth&, ScrHeight&
Declare Function GetSystemMetrics32 Lib "User32" _
Alias "GetSystemMetrics" (ByVal nIndex&) As Long
Private Sub MonitorInfo()
ScrWidth = GetSystemMetrics32(0) '< in pixels
ScrHeight = GetSystemMetrics32(1)
End Sub