Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Excel Automation using OLE

I'm trying to open and process data in xlsx format from another application using OLE concept.

Here is my problem.

When I open and try to save data which is more than 65k in an excel using below code, excel is unable to save more than 65k.

ConnectToNewObject('excel.application')
Application.Workbooks.Add()
|
|
|

But, if I try the below code, I'm able to save more than 65k rows in excel.

ConnectToNewObject('excel.sheet')
|
|
|

The machine has MS Excel 2007 installed.

Can any one explain this behaviour.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default Excel Automation using OLE

Hi

Your comment regarding 65k, I assume you mean 65k Rows, if so, this is
because sheets in earlier versions only supported approx 65,500 rows
give or take + / - 100 thereabouts, whereby, later versions, and I can
only gauge on 2010 as it supports up to a 1,048,576 rows.

HTH
Mick.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default Excel Automation using OLE

On 9/10/2012 1:58 AM, Living the Dream wrote:
Hi

Your comment regarding 65k, I assume you mean 65k Rows, if so, this is
because sheets in earlier versions only supported approx 65,500 rows
give or take + / - 100 thereabouts, whereby, later versions, and I can
only gauge on 2010 as it supports up to a 1,048,576 rows.

HTH
Mick.


And of course If I wasn't as tired as I was and actually read the post
properly instead of skimming I would have realised what I replied with
has little to do with your question. O.o

On that note, I withdraw my previous response as I have no Idea. :\

Cheers
Mick.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Excel Automation using OLE

On 10/8/2012 6:05 AM, chkk_26 wrote:
I'm trying to open and process data in xlsx format from another
application using OLE concept.

Here is my problem.

When I open and try to save data which is more than 65k in an excel
using below code, excel is unable to save more than 65k.

ConnectToNewObject('excel.application')
Application.Workbooks.Add()
|
|
|

But, if I try the below code, I'm able to save more than 65k rows in
excel.

ConnectToNewObject('excel.sheet')
|
|
|

The machine has MS Excel 2007 installed.

Can any one explain this behaviour.


Excel 97 OLE is broken ? Does Excel 2010 have
the same behavior ?

Lynn



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
Supressing the ctrl-c and other keys during word automation in automation apondu Excel Programming 0 July 19th 07 10:10 PM
Excel Automation will Excel Programming 3 March 8th 06 07:47 PM
Automation : from Excel to VB ? PM Excel Programming 3 October 28th 04 09:19 PM
Excel automation in VB.net KC[_4_] Excel Programming 1 September 29th 04 03:36 PM
Excel automation in a VB app [email protected] Excel Programming 1 January 12th 04 07:59 PM


All times are GMT +1. The time now is 05:32 AM.

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

About Us

"It's about Microsoft Excel"