ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   excel (https://www.excelbanter.com/excel-discussion-misc-queries/29447-excel.html)

dgreenbergreps

excel
 
Is there a way to limit the number of rows and columns in an excel sheet?

Dave Peterson

The number of rows is limited to 65536 and the number of columns is limited to
256.

You can hide the ones you're not using, but you can't get rid of them.

You can make it so that users can't scroll off the area that you set, though.
But it requires a small macro:

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.ScrollArea = "a1:g55"
End With
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


dgreenbergreps wrote:

Is there a way to limit the number of rows and columns in an excel sheet?


--

Dave Peterson


All times are GMT +1. The time now is 08:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com