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

Hi, I define "Dim dt as variante" and
save "5 by 2 matrix value" for dt.

However, if i assume that we don't know 5, (# of rows)
How can I get that number?

I want to use k=dt.rows.count. but it doesn't work.
Do you know any suggestion to calculate it?
Thx.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default variance array

Oh, there's typo.

Dim dt As Variant
======
Sorry!


kirke wrote:
Hi, I define "Dim dt as variante" and
save "5 by 2 matrix value" for dt.

However, if i assume that we don't know 5, (# of rows)
How can I get that number?

I want to use k=dt.rows.count. but it doesn't work.
Do you know any suggestion to calculate it?
Thx.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default variance array

TRy

UBound(dt) - LBound(dt) + 1

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"kirke" wrote in message
oups.com...
Hi, I define "Dim dt as variante" and
save "5 by 2 matrix value" for dt.

However, if i assume that we don't know 5, (# of rows)
How can I get that number?

I want to use k=dt.rows.count. but it doesn't work.
Do you know any suggestion to calculate it?
Thx.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default variance array

WOW! IT WORKS! Thx VERY MUCH!!!!!! :)


Bob Phillips wrote:
TRy

UBound(dt) - LBound(dt) + 1

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"kirke" wrote in message
oups.com...
Hi, I define "Dim dt as variante" and
save "5 by 2 matrix value" for dt.

However, if i assume that we don't know 5, (# of rows)
How can I get that number?

I want to use k=dt.rows.count. but it doesn't work.
Do you know any suggestion to calculate it?
Thx.


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
variance % karibug Excel Worksheet Functions 5 June 14th 06 10:54 PM
Pivot Tables - Variance and Variance % PJS Excel Discussion (Misc queries) 2 January 18th 06 03:12 AM
Variance in an array DejaVu[_41_] Excel Programming 2 July 21st 05 07:14 PM
Pivot Tables - Variance and % Variance fields CraigS Excel Discussion (Misc queries) 5 January 6th 05 12:22 AM
% variance Abdul[_6_] Excel Programming 3 June 30th 04 01:58 PM


All times are GMT +1. The time now is 02:57 PM.

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"