Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

Urgent... Getting error in accessing named ranges in excel 2007...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Himanshu Nigam - 18 May 2008 10:48 GMT
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..
JLGWhiz - 18 May 2008 19:30 GMT
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]

> Hi,
>
[quoted text clipped - 24 lines]
> This is a bit urgent .....
> Thanks..
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.