+ Reply to Thread
Results 1 to 3 of 3

Detrmine How Many Rows are Frozen At Top Of Worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    04-07-2007
    Posts
    5

    Detrmine How Many Rows are Frozen At Top Of Worksheet

    I have macros that I use to update the data rows in a worksheet, but I need to determine how many rows (if any) have been frozen by the Freeze Pane option, so that I can skip these rows in the data update process. Currently I am sending an Input Box asking the user for the number of heading rows when they run the macro, I'd like to be able to put in the number of frozen rows as the default to this input box.
    Thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    Sub FreezepaneRow()
    Dim i As Integer
    i = ActiveWindow.ScrollRow
    MsgBox i
    End Sub
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    04-07-2007
    Posts
    5
    Thanks VBA Noob.
    That will work fine, I just need to establish position at the top of the sheet and then get the ScrollRow attribute to get the number of frozen rows. I was hoping that this value was in an attribute that I could just retrieve from the worksheet object without depending on the position in the spreadsheet.

+ 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