Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2016, 07:55 AM
misaak misaak is offline ADODB import of Excel data results in "Run-time error -2147467259: <sheet> is not a valid name." Windows 7 64bit ADODB import of Excel data results in "Run-time error -2147467259: <sheet> is not a valid name." Office 2013
Novice
ADODB import of Excel data results in "Run-time error -2147467259: <sheet> is not a valid name."
 
Join Date: Jun 2016
Posts: 3
misaak is on a distinguished road
Default ADODB import of Excel data results in "Run-time error -2147467259: <sheet> is not a valid name."

Quote:
Originally Posted by macropod View Post

A discussion was held in the other aforementioned location, and the resultant information (provided by RoryA on Jun 20th, 2016) is as follows:

SELECT * INTO and INSERT INTO will only work when the destination workbook is closed whereas I am attempting to import data into an open workbook.

I am already importing the data using ADO CopyFromRecordSet command that works with an open destination workbook, but I keep randomly encountering problems with Excel appearing to either not release all of the memory after the code has finished or there is a memory leak somewhere because repeated executions of the code will cause Excel to eventually stop being able to even launch a simple UserForm stating that there insufficient storage to do so.

Since there are known memory leak issues with using ADO on open workbooks, I will have to consider what to do: change the approach of how the code and import should operate to maybe support using a closed intermediary workbook, open each source file and then obtain the data without using ADO, or live with the memory issue until everything gets ported over to something more capable of handling the massive amount of data.
Reply With Quote
Reply

Tags
adodb oledb import error, import data from excel, run-time -2147467259



Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB import of Excel data results in &quot;Run-time error -2147467259: &lt;sheet&gt; is not a valid name.&quot; Navigation Pane: Preselect "results" instead of "headings" DirkMcCallahan Word 1 03-24-2016 01:38 PM
ADODB import of Excel data results in &quot;Run-time error -2147467259: &lt;sheet&gt; is not a valid name.&quot; Error window: "Document name or path is not valid" SKE Word 1 01-28-2016 10:41 PM
Need help with conditional formatting & returning "Pass" / "Fail Results" in a Column N mikey386 Excel 2 12-11-2014 01:14 PM
Outlook "parameter values are not valid " ALJAMC Outlook 2 05-13-2014 08:22 AM
ADODB import of Excel data results in &quot;Run-time error -2147467259: &lt;sheet&gt; is not a valid name.&quot; Error Outlook 2003 " Receive much mail the same at the same time" nhat2nhat2 Outlook 1 09-26-2011 11:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft