How to Delete Extra Cells and Columns

N

Notdony

Dear Readers,
Can anyone tell me how can I delete the rest of columns and rows of
worksheet which I dont want. I mean to say I work in excel, my workplace is
just the size of my monitor screen. But there or millions of other cells and
rows which are completely blank and useless. Is there any way to delete the
rest of the worksheet and only my workplace stays visible and the rest of it
disapears. I'll be realy grateful for your help. Thanks.
 
G

Gord Dibben

An alternate method to Mike's would be to set the scrollarea so's users could
not stray out of your designated area.

Since the scrollarea method does not stick between sessions you will have to
reset it each time you open the workbook.

You may wish to place the code into a WorkBook_Open Sub in ThisWorkbook module
and specify which worksheet if only one sheet required.

Adjust the sheetname and range to suit.

Private Sub WorkBook_Open()
Sheets("YourSheet").ScrollArea = "A1:M36"
End Sub

Or also in the Thisworkbook module to limit scrollarea on all sheets.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
With ActiveSheet
.ScrollArea = "A1:M36"
End With
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top