Macro para solucionar nombre ambiguo
Me sale el siguiente error "Error de compilación: Se ha detectado un nombre ambiguo: UserForm_Activate". Adjunto código fuente para que me brinde su apoyo.
Private Sub ComboBox2_Change()
    Set h = Sheets("Datos")
    u = h.Range("C" & Rows.Count).End(xlUp).Row
End Sub
Private Sub UserForm_Activate()
    Set h = Sheets("Datos")
    If h.AutoFilterMode Then h.AutoFilterMode = False
    For i = 2 To h.Range("C" & Rows.Count).End(xlUp).Row
        Call Agregar(ComboBox2, h.Cells(i, "C").value)
    Next
End Sub
Private Sub ComboBox4_Change()
    Set h = Sheets("Datos")
    u = h.Range("A" & Rows.Count).End(xlUp).Row
End Sub
Private Sub UserForm_Activate()
    Set h = Sheets("Datos")
    If h.AutoFilterMode Then h.AutoFilterMode = False
    For i = 2 To h.Range("A" & Rows.Count).End(xlUp).Row
        Call Agregar(ComboBox4, h.Cells(i, "A").value)
    Next
End Sub
            
            
            
        2 Respuestas
                    Respuesta de Ander GS                
                
        
        
            
                1
              
        
        
        
            
            
        
    
                
                    Respuesta de Abraham Valencia                
                
        
        
            
                1
              
        
        
        
            
            
        
    
                

 
        