VBA to Remove specfic reference created from file : I put together the following SQL to add a reference to a workbook.

    Sub Add_Reference()
    
    Dim vbProj As Object
    
    Set vbProj = ActiveWorkbook.VBProject
    
    vbProj.References.AddFromFile "C:\User\documents\Master_file.xlsm"
    
    CleanUp:
    Set vbProj = Nothing
    
    End Sub

I thought I would be ale to do the same to `remove` by switching out the `AddFromfile` with `Remove` as follows:


    Sub Remove_Reference()
    
    Dim vbProj As Object
    
    Set vbProj = ActiveWorkbook.VBProject
    
    vbProj.References.Remove "C:\User\documents\Master_file.xlsm"
    
    CleanUp:
    Set vbProj = Nothing
    
    End Sub

When I run `Remove_Reference` I get a `Type mismatch` error on the `vbProj.References.Remove "C:\User\documents\Master_file.xlsm"` line.  Im guessing I need to call it something else but I am not sure what it should be.

Any ideas?