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.

Reporte de venta

publicado

Buenas Noches.

Quisiera saber si me podría ayudar a mejor este libro , agregándole unos macros

me seria de mucha ayudar

de antemano

muchas gracias

Dropbox - EXCEL

PD: Para el uso de sesión del libro

Usuario: EDUARDO

Contraseña:MENDOZA

Featured Replies

publicado
  • Autor

Tengo este problema en mi reporte de venta me podrían ayudar con el Codigo

Private Sub CommandButton2_Click()

Dim usuario As String

Dim password As Variant

Dim DatoEncontrado

Blog = "EXCELeINFO"

UsuarioExistente = Application.WorksheetFunction.CountIf(Range(Hoja32.Cells, ("C12:C21")), Me.txtUsuario.Value)

Set rango = Range(Hoja32.Cells, ("C12:C21"))

If Me.txtUsuario.Value = "" Or Me.txtPassword.Value = "" Then

MsgBox "Por favor introduce usuario y contraseña", vbExclamation, Blog

Me.txtUsuario.SetFocus

ElseIf UsuarioExistente = 0 Then

MsgBox "El usuario '" & Me.txtUsuario & "' no existe", vbExclamation, Blog

ElseIf UsuarioExistente = 1 Then

DatoEncontrado = rango.Find(What:=Me.txtUsuario.Value, LookAt:=xlWhole, MatchCase:=True).Address

Contrasenia = Range(DatoEncontrado).Offset(0, 1).Value

If CStr(Range(DatoEncontrado).Value) = Me.txtUsuario.Value And Contrasenia = _

Me.txtPassword.Value Then

Range("G2").Value = "Usuario: " & Range(DatoEncontrado).Offset(0, -1).Value

'Aquí va el código para dar acceso a todo lo que el programador decida

Sheets("MENU").Select

Unload Me

Else

MsgBox "La contraseña es inválida", vbExclamation, Blog

End If

End If

End Sub

me manda error al iniciar

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.