vba - query connection in excel with new data loaded -
MS Access is available query Database11 and fresh when the (latest ODBC) results in a subscript out of range error. I'm not sure what to do. Sense slow sfile string sheet ("annovar") in the form of active range ("A1") SR)
Private sub Workbook_Open () Select SR = MsgBox (" clear: thanks .. annovar sheet for the new data ", vbQuestion + vbYesNo + vbDefaultButton2) If SR = vbYes then Application.ScreenUpdating = false error resume next Application.DisplayAlerts = false sheets (" annovar ") UsedRange.Clear ChDrive . "N: \ torrents \ Setup \ Clinical" ChDir "N: \ Torrent \ Setup \ Clinical" Error GoTo 0 sFile = Application.GetOpenFilename _ (FileFilter: = "Text Files, * .txt", MultiSelect: = False) workbook . OpenText filename = SFile, Origin = 437, StartRow = 1, data type = XlDelimited, _ TextQualifier = XlDoubleQuote, ConsecutiveDelimiter: = False, tab: = True, _ FieldInfo = array (array (1, 1) , array (2, 1), Arre (3, 1), Arre (4, 1), Arre (5, 1), Arre (6, 1), Arre (7, 1), Arre (8, 1), Array (9, 1), _ Array (10, 1), Array (11, 1), Array (12, 1), Array (13, 1), Array (14, 1), A Array (19, 1 ), Array (20, 1), Array (21, 1), Array (19, 1), Array (17, 1), Array (18, 1) Array (22, 1), _ Array (23, 1 Array (25, 1), Array (26, 1), Array (27, 1), Array (28, 1) Array (29, 1), Array (30, 1) , Array (31, 1), Arre (32, 1), Arre (33, 1), Arre (34, 1), Arre (35, 1) _ array (36, 1), array (37, 1), array (38, 1), array Array (40, 1), array (40, 1), array (41, 1), array (_ 42, 1), array (43, 1), array (44, 1), array (45, 1) Array (51, 1), Array (52, 1), Array (46, 1), Array (47, 1), Array (48, 1), _ Sarani (49, 1), Array (50, 1) (53, 1), Array (54, 1), Array (_ 55, 1)), trailing Minas number: = Truth ActiveWorkbook ("ANO"). Range ("A1") Paste Special Application. KookaPoMode = Wrong Action Book Close the wrong sheets ("unwar"). Activate the activation activation category ("A1"). Choose an application .ScreenUpdating = True End if 'Refresh Odbc Connection ActiveWorkbook.Con Nections ("Questions from MS Access Database 11") Refresh and all
Comments
Post a Comment