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.

Crear comprobación de datos

publicado

Hola, necesito crear de alguna manera que los datos ingresados en una celda vuelvan a ser ingresados y si no es el mismo que se ingreso la primera ves genere error hasta que sea el mismo ingresado anteriormente 

Featured Replies

publicado

Pon en la macro en la hoja.

Ejemplo para la celda A1.

Dim Valor As Variant
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
   If Valor = "" Then
      Application.StatusBar = "Repite el valor introducido"
      Target.Select
      Valor = Target
      Exit Sub
   End If
   If Valor = Target Then
      Application.StatusBar = False
   Else
      Application.StatusBar = "Valor erróneo. Repite introducción."
      Target = ""
      Target.Select
   End If
   Valor = ""
End If
End Sub

 

publicado
  • Autor
hace 10 minutos , Antoni dijo:

Pon en la macro en la hoja.

Ejemplo para la celda A1.

Dim Valor As Variant
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
   If Valor = "" Then
      Application.StatusBar = "Repite el valor introducido"
      Target.Select
      Valor = Target
      Exit Sub
   End If
   If Valor = Target Then
      Application.StatusBar = False
   Else
      Application.StatusBar = "Valor erróneo. Repite introducción."
      Target = ""
      Target.Select
   End If
   Valor = ""
End If
End Sub

 

lo ingrese pero al ingresar x valor en la celda a1 no me aparece un mensaje solicitando que lo repita solo que al volver a ingresarlo si no es igual se elimina, necesito que por obligación solicite ingresarlo nuevamente y si no es el mismo lo borre 

Libro1.xlsm

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.