Avatar of Murray Brown
Murray Brown
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

VB.net Excel AddIn System.NullReferenceException

Hi. I am using the following code when trying to log into Xero in my Excel Add-in and getting the error below.
This might be because there are two companies

    _xero.Companies.ForEach(Sub(x)
                                    Dim item = Globals.Factory.GetRibbonFactory().CreateRibbonDropDownItem()
                                    item.Label = x.TenantName
                                    item.Tag = x.TenantId.ToString
                                    cbCompanies.Items.Add(item)
                                End Sub)

Open in new window


Visual Basic.NETXeroMicrosoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
ste5an

8/22/2022 - Mon