Adaptara macro a código fuente ya generado
Dante Amor buenas tardes, un gran favor, puedes ayudarme para adaptar la macro "If Not Intersect(Target, Range("A:A")) Is Nothing Then..." al código que ya tengo desarrollado.
Adjunto lo que he realizado pero no me funciona.
Te agradezco de antemano por la ayuda.
Private Sub CommandButton1_Click() Application.ScreenUpdating = False Application.EnableEvents = False ActiveSheet.DisplayPageBreaks = False Set h = Sheets("Report") Set r = h.Columns("A") Set b = r.Find(pedido, lookat:=xlWhole) f = 2 Do Until h.Cells(f, 1) = "" If h.Cells(f, 2) = "" Then GoTo siguiente h.Cells(f, "H") = TextBox4 h.Cells(f, "I") = ComboBox1 siguiente: f = f + 1 Loop If Not Intersect(Target, Range("A:A")) Is Nothing Then If Target.Count > 1 Then Exit Sub If Target.value = "" Then Exit Sub num = WorksheetFunction.Max(Columns("B")) + 1 Target.Offset(0, 1) = num End If Unload Me UserForm4.Show Application.ScreenUpdating = True Application.EnableEvents = True ActiveSheet.DisplayPageBreaks = True Application.CutCopyMode = False End Sub
1 Respuesta
Respuesta de Dante Amor
1