Microsoft Visual Basic Error – Methord or Data member not found

Microsoft Visual Basic Error – Methord or Data member not found

This error is generated when you call a function that is set a private. To resolve the issue change the function from Private to Public.

Public Sub LoadScripts()
    Call BlockInactiveTags.BlockInactiveTags
    Call CatToTag.CatToTag

    Call DataLoadArticles.DataLoadArticles
    Call DataLoadCustomer.DataLoadCustomer
    Call RenameTags.RenameTags
    Call RenameInactiveTags.RenameInactiveTags

    Call CompanyDetailsUpdate.CompanyDetailsUpdate
End Sub

I was getting the error when the DataLoadCustomer function is set to private

Private Sub DataLoadCustomer

I then changed the DataLoadCustomer function to public