Professional Documents
Culture Documents
Codigo Macro Excel
Codigo Macro Excel
Call CargarSis
Me.ListView1.ColumnHeaders.Clear
Me.ListView1.ListItems.Clear
With ListView1
.Gridlines = True
.CheckBoxes = True
.View = ivwReport
.FullRowSelect = True
.Visible = True
With .ColumnHeaders
.Clear
.Add , , "ID", 55
End With
Fila = 2
Fila = Fila + 1
Loop
CodMunicipal.List = Worksheets("LISTAS").Range("B3:B4").Value
Departamento.List = Worksheets("LISTAS").Range("F3:F4").Value
Municipio.List = Worksheets("LISTAS").Range("D3:D4").Value
Dosis.List = Worksheets("LISTAS").Range("H3:H7").Value
Meses.List = Worksheets("LISTAS").Range("J3:J14").Value
Años.List = Worksheets("LISTAS").Range("L3:L4").Value
End Sub
Exit Sub
End If
Call Modificado
Exit Sub
End If
fla = 2
fla = fla + 1
Loop
Fnal = fla
With sheet1
.Cells(Fnal, 1) = ID.Value
.Cells(Fnal, 2) = Departamento.Value
.Cells(Fnal, 3) = Municipio.Value
.Cells(Fnal, 4) = Codigo_Municipal.Value
.Cells(Fnal, 5) = MES.Value
.Cells(Fnal, 6) = AÑO.Value
.Cells(Fnal, 7) = Dosis.Value
.Cells(Fnal, 8) = Cantidad.Value
.Cells(Fnal, 9) = TOTAL_DE_DOSIS.Value
End With
ActiveWorkbook.Save
Call Limpiar_campos
Call UserForm_Initialize
End Sub
objeto.Text = ""
End If
Next objeto
Dim com As Object
com = ""
End If
Next com
End Sub
Sub CargarSis()
lbl_info = "Registro"
alpha = "A"
End Sub