Video 6 - Codigo Glosa

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Sub Glosa()

Dim Mensaje As String


Dim Fila As Integer
On Error GoTo Error

'GLOSA
Application.ScreenUpdating = False
Sheets("COMPROBANTE").Activate
Range("D8").Copy
Range("D28").Select
Selection.End(xlUp).Select
Fila = ActiveCell.Row
Range("I10", Cells(Fila, 9)).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Range("A1").Select
Application.ScreenUpdating = True
Exit Sub
Error:
Mensaje = MsgBox("Ocurri� un error, intenta de nuevo; Debes tener cuentas
registradas en el comprobante en la columna Codigo", vbCritical)
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub

You might also like