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.
publicado

Saludos amigos espero estén bien 

En la actualidad utilizo la siguiente macro para generar un código alfanumérico continuo que al guardar los datos se copia en la Celdas “B5” de las Hojas 58 (MATRIZ1) y Hojas59 (MATRIZ2)

Private Sub CommandButton3_Click()
    If Hoja58.Range("B5").Value < 9999 Then
       Hoja58.Range("B5").Value Hoja58.Range("B6").Value + 1
    Else
       Hoja58.Range("B5").Value = 1
    End If

   If Hoja59.Range("B5").Value < 9999 Then
       Hoja59.Range("B5").Value = Hoja59.Range("B6").Value + 1
    Else
       Hoja59.Range("B5").Value = 1
    End If
End Sub

El código se genera normalmente sin embargo no se copia inmediatamente en las Celdas “B5” sino que aparece en las Celdas “B6” mientras que las Celdas “B5” siempre permanecen en blanco, actualmente el código consta de tres letras y cuatro dígitos (RCI-0000) pero me interesa poderle concatenar el mes y año en formato mm-yy para que el código finalmente quede expresado de la siguiente forma RCI-0000-00-00

Mucho les sabre agradecer la ayuda que me puedan dar

RCI PRUEBA..xlsm

Solucionado por JSDJSD

Ir a la solución

Featured Replies

publicado
  • Autor

Exelente funciona tal cual necesito 

Crear una cuenta o conéctate para comentar

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.