|
-
Apr 22nd, 2008, 03:35 AM
#1
Thread Starter
Fanatic Member
[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
-
Apr 22nd, 2008, 03:48 AM
#2
Lively Member
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
-
Apr 22nd, 2008, 03:59 AM
#3
Thread Starter
Fanatic Member
Re: Excel Automation Set a Fixed Row
Both questions are now resolved
Thank you for quick and informed response.
Rob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|