Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Color de celda a objeto

publicado

Amigos, quiero pasar el color de fondo de una celda a un control textbox

he intentado con este pero no sale, por favor sus comentarios

For X = 2 To Productos.Range("A1").End(xlDown).Row

If Me.CbPoductos.Text = Productos.Cells(X, 2) Then

TxtLunes.BackColor = Productos.Cells(X, 2).Interior.Color
End If
Next[/CODE]

a la espera de sus comentarios

Celest3

[/b]

Featured Replies

publicado

.

Intentalo así:

For X = 2 To Productos.Range("A1").End(xlDown).Row
If Me.CbPoductos.Text = CStr(Productos.Cells(X, 2)) Then
TxtLunes.BackColor = Productos.Cells(X, 2).Interior.Color
Exit For
End If
Next[/CODE]

Saludos a ambos

[b][color=#ff0000]PD: Recuerda subir un archivo la próxima vez.[/color][/b]

.

publicado
  • Autor

Gracias maestros por sus respuestas, los dos están lo correcto,

en el adjunto esta el archivo, llegue a cambiar el Blackcolor del textbox, pero en realidad lo que quiero es pasar ese color a la celda.

1.- al abrir el formulario se carga un listbox enlazado a la hoja Programación

2.- en l parte de suberior del listbox hay texbox (por cada dia) y un combo box

3.- en el comboBox escojo un producto y segun el escogido el textbox activo coje el color d ela celda.

4.- el backcolor debe pasar a la hoja Programacion segun el dia.

espero que se me entienda y me puedan dar unos consejos.

Saludos,

Celest3

PRUEBA3.rar

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.