Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default COleSafeArray

Anyone have a guess as to why you have to dimension the COleSafeArray with DIMENSION = 2 in order to read a column from a worksheet using the Range object? Seems like column data should be a single dimension, but COleSafeArray refuses to copy the VARIANT parray unless it is created with 2 dimensions.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default COleSafeArray

a column when placed in an array directly is two dimensional = (1 to # of
rows, 1 to 1)

--
Regards,
Tom Ogilvy

chelms wrote in message
...
Anyone have a guess as to why you have to dimension the COleSafeArray with

DIMENSION = 2 in order to read a column from a worksheet using the Range
object? Seems like column data should be a single dimension, but
COleSafeArray refuses to copy the VARIANT parray unless it is created with 2
dimensions.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default COleSafeArray

Well thanks, I guess a mathemetician defined that approach.
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



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