Deleting and only viewing selected rows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sometimes when I am working in excel I unintentionally create extra rows that
have nothing in them on the sides and at the bottom of my worksheet. I think
I do this by scrolling over further than I need or scrolling down further
than I want the screen to go. But then I cannot go and delete those extra
rows at all. They are just out there without anything in them. Is there a way
I can either delete those or only allow someone who uses my worksheet to see
the rows and columns I want them to see when they open it up?
 
Normally a save will reset the used range. If you had data in one of these
cells, you can delete all of the columns to the right of your data and
delete all rows below your data.

This will reset the used range:

x = ActiveSheet.UsedRange.Address

To restrict where the user can scroll, have a look at ScrollArea Property in
help.

--
Damon Longworth

Don't miss out on the 2005 Excel User Conference
Sept 16th and 17th
Stockyards Hotel - Ft. Worth, Texas
www.ExcelUserConference.com
 
Hi ACJC4602,

If you mean that hitting Ctrl End takes you to a location outside your
anticipated data area, see Debra Dalgleish notes on resetting the UsedRamge
at:
http://www.contextures.com/xlfaqApp.html#Unused

To restrict user access to a desinated contiguous range try:

Sub Tester()

ActiveSheet.ScrollArea = "A1:G20" '<<===Change to suit

End Sub

If you are not not familiar with macros, you may wish to visit David
McRitchie's site and look at his 'Getting Started With Macros And User
Defined Functions' page:

http://www.mvps.org/dmcritchie/excel/getstarted.htm
 
thank you so much!

Damon Longworth said:
Normally a save will reset the used range. If you had data in one of these
cells, you can delete all of the columns to the right of your data and
delete all rows below your data.

This will reset the used range:

x = ActiveSheet.UsedRange.Address

To restrict where the user can scroll, have a look at ScrollArea Property in
help.

--
Damon Longworth

Don't miss out on the 2005 Excel User Conference
Sept 16th and 17th
Stockyards Hotel - Ft. Worth, Texas
www.ExcelUserConference.com
 

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

Back
Top