Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Sub ConsolidarTransaccionesTarjetas()
'Las Variables que almacenarán informacion tipo texto se deben configurar como tipo String y las
numéricas como single
'Crear la variable para almacenar el nro de fila donde se encuentra el banco a consutar
'Crear la variable
Ruta = Range("D2")
'Tomar el nombre del banco a consultar
Banco = Range("D6")
Franquicia = Range("D4")
Range("C10").Select
'Paso2: Iniciar esctructura repetitiva para recorrer toda la lista de archivos a abrir
ActiveCell.Offset(1, 0).Select
NombreArchivo = ActiveCell
'En caso de que la variable se quede sin información, Significa que ya se termino el recorrido de
la lista
Exit Do
end If
'PASOS PARA RECORRER UNA LISTA DE FILA POR FILA HASTA EL FINAL BUSCANDO UN TEXTO
Range("C8").Select
ActiveCell.Offset(1, 0).Select
NroFilaBanco = ActiveCell.Row
'El rango de celdas depende de la franquicia, por lo tanto se debe aplicar un condicional
Else
End If
End If
Selection.Copy
Exit Do
End If
Loop
'Cerrar el libro
ActiveWorkbook.Close
'Ubicarnos en la celda a partir de la cual se deben pegar los datos obtenidos del archivo bancos
ActiveCell.Offset(0, 1).Select
ActiveSheet.Paste
'Formato a pegar
Paste = xlPasteValuesAndNumberFormats
ActiveCell.Offset(0, -1).Select
'Paso2: Iniciar esctructura repetitiva para recorrer toda la lista de archivos a abrir
ActiveCell.Offset(0, 1).Select
'Cambiar
ActiveCell = 0
End If
Loop
FilaMes = ActiveCell.Row
Else
Else
'Calcular promedios y grabarlos en la celdas respectivas
Else
Else
End If
End If
End If
End If
Loop
End Sub
Usuario = txtUsuario
Clave = txtClave
Hoja2.Visible = xlSheetVisible
'Seleccionar hoja
Hoja2.Select
ActiveCell.Offset(1, 0).Select
Hoja3.Select
Hoja2.Visible = xlSheetVeryHidden
'Mostrar mensaje
Else
'Ocultar hojas
Hoja2.Visible = xlSheetVeryHidden
Hoja1.Visible = xlSheetVisible
'Seleccionar la hoja
Hoja1.Select
'Grabar el usuario
Range("K3") = txtUsuario
'Grabar la fecha
Range("M3") = Date
'Mostrar mensaje
'Ocultar hoja
Hoja3.Visible = xlSheetVeryHidden
'cerrar formulario
Unload Me
Exit Do
End If
End If
Loop
End Sub
'Activar hoja
Hoja3.Activate
'Sheets("Usuarios").Visible = xlSheetVeryHidden
Hoja1.Visible = xlSheetVeryHidden
Hoja2.Visible = xlSheetVeryHidden
FormAutentificacion.Show
End Sub
Txtcontraseña
CMDINGRESAR