M
Mo
I have an application that runs several queries and then outputs them to
Excel. I am using Access 97 and have just recently changed some of the
queries to output to Excel using transferspreadsheet rather than via a macro.
This was done to get around an Excel row limitation problem. The problem
with this new way is that the Excel output no longer automatically shades the
headings and no longer has boarders. We don't want our users to have to
manually do these steps. Can anyone assist with the code to do this via
Access?
For shading the 1st row I was experimenting with the following:
XLAPP.Rows("1:1").Select
With XLAPP.Selection.Interior
.ColorIndex = 48
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
It selects the row ok and isn't erring but the fields are not being shaded.
help!
Excel. I am using Access 97 and have just recently changed some of the
queries to output to Excel using transferspreadsheet rather than via a macro.
This was done to get around an Excel row limitation problem. The problem
with this new way is that the Excel output no longer automatically shades the
headings and no longer has boarders. We don't want our users to have to
manually do these steps. Can anyone assist with the code to do this via
Access?
For shading the 1st row I was experimenting with the following:
XLAPP.Rows("1:1").Select
With XLAPP.Selection.Interior
.ColorIndex = 48
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
It selects the row ok and isn't erring but the fields are not being shaded.
help!