+ Reply to Thread
Results 1 to 2 of 2

Object sheet name and scroll limit not working.

  1. #1
    Registered User
    Join Date
    02-09-2005
    Posts
    3

    Question Object sheet name and scroll limit not working.

    I have 5 sheets in my workbook. I am trying to limit the scroll area in ThisWorkbook in the design area. I have different scroll areas for each sheet. I'm using the code
    Private Sub Workbook_Open()

    Sheets(1).ScrollArea = "A1:N340"
    Sheets(2).ScrollArea = "A1:H125"
    Sheets(3).ScrollArea = "A1:L3415"
    Sheets(4).ScrollArea = "A1:Z1000"
    Sheets(5).ScrollArea = "A1:L529"

    The problem is that sheet(5) horizontal scroll locks up when I assign it this limit. If I comment out the scroll area for sheet(5) it have no problem. Could there be some kind of assignment error. I've also noticed that sheet(4) takes on the limits of sheet(5). ???#@#

    I start out with 3 sheets and added the other two later. I don't know if this has anything to do with it.

    Thanks for any help.

    HuggyBear

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646
    Maybe the worksheets Index changed when you added/removed sheets.

    Maybe you could reference them by sheet name or codename.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1