Excel Exporting to Access, via VBA, is Causing Instability
问题 I have to create over 170 named ranges in Excel which I am trying to load into an Access table. Below is my code. Sub Load_To_ALLL_TSD() Dim strDatabasePath As String Dim oApp As Access.Application Dim PathOfworkbook As String PathToDB = ThisWorkbook.Path strDatabasePath = PathToDB & "\RAROC.accdb" Set oApp = CreateObject("Access.Application") 'Set db = Application.CurrentProject oApp.Visible = True oApp.OpenCurrentDatabase strDatabasePath Set db = CurrentDb() Set rs = db.OpenRecordset("ALLL