Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Problem with named Range in ADO extract from Closed Excel File

I have used the ADO method to extract cell data from a closed Excel
file in the past successfully but in my current efforts I am using a
named range which does not appear on the first sheet (putting in a
simple a1:d10 as the range does work but grabs front sheet). The
argument in the call is like this:

GetDataFromClosedWorkbook "C:\FolderName\WorkbookName.xls",
"MyDataRange", Range ("B3"), True

where MyDataRange is a range on the 10th sheet named "Projected" and
has a first row which consists of AccountName,and then dates all the
way across.

The code errors out to the error handler at the line:
Set rs = dbConnection.Execute("[" & SourceRange & "]")


this is the source for the code - and the platform is xl2000 on
win2000.

http://www.erlandsendata.no/english/...mportwbado.htm

Thanks
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with named range for a large spreadsheet in Excel 2007 Niranjan Excel Discussion (Misc queries) 0 January 26th 10 04:13 PM
Problem with link to named range Victor Delta[_2_] Excel Discussion (Misc queries) 0 August 17th 09 02:49 PM
Find in Named Range problem (2nd Try) G.R. New Users to Excel 2 February 27th 08 08:17 PM
HOW TO EXTRACT CELL REFERENCE AS TEXT FROM NAMED RANGE romelsb Excel Worksheet Functions 0 November 3rd 06 09:49 PM
How do I use indirect when referring to a named range in a closed Ed Green Excel Worksheet Functions 3 May 22nd 06 08:01 PM


All times are GMT +1. The time now is 06:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"