Change color in excel from access

M

Michaël

Hello,

I'am trying from access to change the color of a cell in Excel, but it will
not succeed.

If ActiveCell.Interior.ColorIndex = 36 then
commands
End IF

When i do Msgbox ActiveCell.Interior.ColorIndex then i get allways the
value -4142.
What i'am doing wrong?

tx

Michaël
 

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