Habilitar barra de color

Daniel

New Member
Joined
Jul 14, 2002
Messages
25
Hola todos. Espero y puedan ayudarme. Eh protegido una hoja de trabajo pero requiero que ciertas celdas que eh habilitado para que sean accesadas se habiliten tambien para ser llenadas por color. Es esto posible?

Gracias de antemano.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Daniel,

Si tienes una version de Excel que se anterior a la 2002, no puedes hacerlo directamente del programa.

Con un macro lo puedes hacer en cualesquier version de Excel. Solo agrega esto al principio del macro:

ActiveSheet.Protect UserInterfaceOnly:=True

Esto no le quita la proteccion a la hoja pero te permite modificarla desde el macro.

despues de esto yo le agregaria el codigo para el color, que seria esto:

ActiveSheet.Range("c1").Interior.ColorIndex = 1

El numero equivale a un color. 1 negro, 2 blanco, 3 rojo, etc. etc. La celda que yo modifique fue la c1.

Bueno espero y esto te sea de ayuda.
 
Upvote 0

Forum statistics

Threads
1,226,739
Messages
6,192,739
Members
453,755
Latest member
IQBS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top