fullcomputers.blogg.se

No row and column visible in excel for mac 2011
No row and column visible in excel for mac 2011













  1. NO ROW AND COLUMN VISIBLE IN EXCEL FOR MAC 2011 MAC OS X
  2. NO ROW AND COLUMN VISIBLE IN EXCEL FOR MAC 2011 CODE

Me.ScrollArea = Range(Me.UsedRange, Me.UsedRange(2,2)).Address To use this method, right-click the Sheet Name tab on which you want the scroll area limited, select View Code, and enter the following code: Private Sub Worksheet_Activate( )

NO ROW AND COLUMN VISIBLE IN EXCEL FOR MAC 2011 CODE

When we select another worksheet ( Daily Budget), we again allow the code to select any cell on this worksheet and set the scroll area for this worksheet back to the desired range.Ī third method, the most flexible, automatically limits the scroll area to the used range on the worksheet within which you place the code. We added ActiveSheet.ScrollArea = "" so that any cell on the worksheet can be selected and then the scroll area can be set back to our desired range. It then selects the worksheet named Daily Budget, selects cell T500 on that sheet, and "unbolds" it. Our recorded macro selects cell Z100 and formats it to boldface. So, your code should look something like this: Sub MyMacro( )

no row and column visible in excel for mac 2011

Place the following line of code as the very first line of code: ActiveSheet.ScrollArea = ""Īs the very last line of code in your macro, place the following: ActiveSheet.ScrollArea = "$A$1:$G$50" (Alt-F8), locate your macro name, select it, and click Edit. If your macros do select a range outside the scrollable area, you can easily modify any existing macros so that they are not limited to a specific scroll area while operating. This is true particularly for recorded macros, as they often use selections. Right-click the Sheet Name tab on which the scroll area should be limited and select View Code, then enter the following: Private Sub Worksheet_Activate ( )Īs usual, press Alt/ -Q to return to Excel proper and save your workbook.Īlthough you will not see a visible clue, such as the gray moat of the first method, you won't be able to scroll or select anything outside the specified area.Īny macro that tries to select a range outside this scroll area (including selections of entire rows and columns) will no longer be able to do so. This means you need a very simple macro to automatically set the scroll area to the desired range by placing some code in the worksheet_Activate event. Unfortunately, Excel will not save this setting after closing it. You will be unable to scroll outside the area you have specified. In the associated value field to the right, enter the preferred boundaries of your worksheet- $A$1:$G$50, for instance. Now, from within the Project Explorer, select the worksheet you want the scroll area limited to, and then, from the Properties window, go down to the ScrollArea property. Select the appropriate worksheet and visit the ScrollArea property in the Properties window. If the Properties window isn't visible, press F4 to make it appear.

NO ROW AND COLUMN VISIBLE IN EXCEL FOR MAC 2011 MAC OS X

Select View » Project Explorer (Ctrl-R) on Windows, or press -R under Mac OS X to visit the Project Explorer. Right-click the sheet's tab at the bottom left of the window and select View Code from the context menu. The second way to establish boundaries is to specify a valid range in the worksheet's Properties window. If all went according to plan, your useful cells should be surrounded by a gray moat past which you cannot scroll. Do the same thing for unused columns find the last-used column, select the entire column to the right of it, press the Ctrl and Shift keys while pressing the right arrow, and select Format » Column » Hide. Select Format » Row » Hide to hide them all. Press the Ctrl and Shift keys while pressing the down arrow to select all rows beneath. On your sheet, locate the last row containing data and select the entire row below it by clicking the row label. The easiest way to establish boundaries is simply to hide all the unused columns and rows.

no row and column visible in excel for mac 2011

Doing this also can make it less daunting to scroll around in a worksheet, as it is not uncommon for users to find themselves at row 50,000 and then start screaming that they are unable to find any data in a worksheet. You then can place data you do not want a user to see outside the scrollable area. A nice bit of spring cleaning limits the worksheet's scrollable area to just the part containing the data you want a user to see. More often than not, your worksheet uses only a small percentage of the cells available to you.

no row and column visible in excel for mac 2011

All Excel worksheets created in Excel 97 and above are 256 columns wide (A to IV) and 65,536 rows long.















No row and column visible in excel for mac 2011