Conflict

D

Don Lloyd

Hi,

I have 3 controls on a sheet. 2 are buttons from the Forms Control Box and
the other one is a ComboBox from the Control Toolbox.

Each control changes the value of a cell (common to all) and then calls a
Sub routine that formats ranges of cells.

All is well with the Buttons but when the routine is run from the ComboBox
control it fails on the following line.

Rnge.Borders.ColorIndex = xlColorIndexNone

with the message . . unable to set . . .etc.

Events are set to False in all cases.

Any ideas ?

regards,

Don
--
 
T

Tom Ogilvy

If xl97 as the first line of code (for the combobox which is having trouble)
put in

ActiveCell.Activate
 
D

Don Lloyd

Thank you Tom.
Worked a treat.

Don

--

Tom Ogilvy said:
If xl97 as the first line of code (for the combobox which is having trouble)
put in

ActiveCell.Activate
 

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