Format Pageheader

B

Ben Adams

Would like to change the color of a Box for each PageHeader - And use Random
Colors. Not sure where to start??

Me.Box81 is the box with the color, Me.TableofContents is the field that
contains the PageHeader title.
________________________________________


Dim BCOLOR As Integer


Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)

BCOLOR = 255

OnChange(Me.TableofContents)
BCOLOR = BCOLOR + 10
Me.Box81.BackColor = BCOLOR

End Sub
 

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

Top