Buen día, ¿Alguien sabe como podría quitarle el error run time 1004 a esta macro?
Public RunWhen As Double
Sub Parpadear()
    With ThisWorkbook.Worksheets("NEW STYLES").Range("B2").Font
     If .ColorIndex = 48 Then
        .ColorIndex = 2
        Else
        .ColorIndex = 48
    End If
   End With
   RunWhen = Now + TimeSerial(0, 0, 1)
   Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!Parpadear", , True
  
End Sub
Sub noparpadear()
    ThisWorkbook.Worksheets("NEW STYLES").Range("B2").Font.ColorIndex = _
    xlColorIndexAutomatic
    Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!Parpadear", , False
End Sub
1 Respuesta
                    Respuesta de Dante Amor                
                
        
        
            
                1
              
        
        
        
            
            
        
    
                

