Saludos Profesor Sergio, de ante mano gracias por responder, realice lo que me sugirió coloque el código donde me indicó, sin embargo me sigue arrojando el mismo error.
' Restaurar formato de fuente
With wsHistorico.Rows("2:2").Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
' Incrementar automáticamente el número de recibo
wsRecibo.Range("J2").Value = wsRecibo.Range("J2").Value + 1
'Corrección de Error en impresión
Application.Wait (Now + TimeValue("0:00:01"))
' Imprimir
wsRecibo.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False
Por
dorgelis, · publicado
Me gustaria que me explicaran paso a paso este codigo, gracias de antemano.
Dim ligne, débutOrg, f, forga, inth, intv, Tbl(), n, d
Sub DessineAscendants()
Set forga = Sheets("BD")
Set f = Sheets("bd")
Set d = CreateObject("Scripting.Dictionary")
Tbl = f.Range("A2:I" & f.[A65000].End(xlUp).Row).Value
n = UBound(Tbl)
Set débutOrg = forga.Range("I23")
ligne = 0
inth = 60
intv = 40
liginit = ActiveCell.Row - 1
lig = ActiveCell.Row - 1
couleur = IIf(Tbl(lig, 4) = "M", f.Cells(2, 2).Interior.Color, f.Cells(2, 3).Interior.Color)
créeShapeP Tbl(lig, 1), couleur, 0, IIf(Tbl(lig, 4) = "M", "AM", "AF"), " "
End Sub