Hi,
I have a vba function module in access that output a query to an excel type (97-2003 Worksheet).
Ive tried to center the cell contents from B2 To D10 using:
With sh.Range("B2:D10")
.HorizontalAlignment = xlCenter
End With
but am getting runtime error 1004: Unable to set HorizontalAlignment property of the Range class.
Any idea?
I have a vba function module in access that output a query to an excel type (97-2003 Worksheet).
Ive tried to center the cell contents from B2 To D10 using:
With sh.Range("B2:D10")
.HorizontalAlignment = xlCenter
End With
but am getting runtime error 1004: Unable to set HorizontalAlignment property of the Range class.
Any idea?