Results 1 to 3 of 3

Thread: [RESOLVED] Excel Automation Set a Fixed Row

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Resolved [RESOLVED] Excel Automation Set a Fixed Row

    I am automating Excel from a VB6 program.
    I am writing the Column Headers into Row1
    I have managed to color them Grey (Would be nice if I could color the whole line, instead of the 10 Columns I have written Header Names to. But that was not my main question).
    My question is -
    How can I send the instruction for Row 1 to be 'Fixed' ?
    (Is 'Fixed' the correct expression ?, as Googling was not a great success)
    The end result should be that Row 1 will remain visible, even when the user goes scrolling down the Rows.

    Thanks,
    Rob
    Rob C

  2. #2
    Lively Member
    Join Date
    Aug 2007
    Posts
    86

    Re: Excel Automation Set a Fixed Row

    for whole column to be grey
    Code:
    objExcel.Rows(1).Interior.ColorIndex = 15
    To freeze the top row
    Code:
        With ActiveWindow
            .SplitRow = 1
            .FreezePanes = True
        End With

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Excel Automation Set a Fixed Row

    Both questions are now resolved
    Thank you for quick and informed response.

    Rob
    Rob C

Posting Permissions

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



Click Here to Expand Forum to Full Width