Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent... Getting error in accessing named ranges in excel 2007...

Hi,

There are two issues I am facing in my code
Issue 1.
The scenario is
From C# code I am opening excel 2007 workbook as database.
In the workbook there are certain named ranges defined with scope as both
workbook and sheets.
e.g. EventLiveDate (workbook level) valInEvent (sheet level)
When I am trying to query them as
1. select * from EventLiveDate
2. select * from ['Store2DG_1'valInEvent]

I am getting result from first but second gives and exception

"The Microsoft Office Access database engine could not find the object
''Store2DG_1'valInEvent'. Make sure the object exists and that you spell its
name and the path name correctly."

But when i use workbok in excel 2003 this works fine.

Issue 2
Scenario is
Small size excel 2003 workbook is giving no problem but when size of the
workbook is 130 MB, it gives runtime error system resource exceeded.

This is a bit urgent .....
Thanks..
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Urgent... Getting error in accessing named ranges in excel 2007...

I have never used C# to access Excel before, but guessing that
['Store2DG_1'valInEvent] represents a worksheet and range, then try:

['Store2DG_1'!valInEvent]





"Himanshu Nigam" wrote:

Hi,

There are two issues I am facing in my code
Issue 1.
The scenario is
From C# code I am opening excel 2007 workbook as database.
In the workbook there are certain named ranges defined with scope as both
workbook and sheets.
e.g. EventLiveDate (workbook level) valInEvent (sheet level)
When I am trying to query them as
1. select * from EventLiveDate
2. select * from ['Store2DG_1'valInEvent]

I am getting result from first but second gives and exception

"The Microsoft Office Access database engine could not find the object
''Store2DG_1'valInEvent'. Make sure the object exists and that you spell its
name and the path name correctly."

But when i use workbok in excel 2003 this works fine.

Issue 2
Scenario is
Small size excel 2003 workbook is giving no problem but when size of the
workbook is 130 MB, it gives runtime error system resource exceeded.

This is a bit urgent .....
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
Named ranges in Excel 2007 [email protected] Excel Discussion (Misc queries) 2 September 10th 07 08:22 PM
URGENT: Using Named Ranges with Chart Wizard artisdepartis Excel Worksheet Functions 4 July 3rd 07 07:46 AM
Named Ranges - accessing a cell mojoweiss Excel Discussion (Misc queries) 1 September 1st 05 04:20 PM
Accessing named ranges in Excel from VBA Basz Excel Discussion (Misc queries) 1 August 10th 05 03:21 PM
Accessing Named Ranges Michael Monteiro Excel Programming 1 August 27th 03 05:29 PM


All times are GMT +1. The time now is 11:14 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"