Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
variance % | Excel Worksheet Functions | |||
Pivot Tables - Variance and Variance % | Excel Discussion (Misc queries) | |||
Variance in an array | Excel Programming | |||
Pivot Tables - Variance and % Variance fields | Excel Discussion (Misc queries) | |||
% variance | Excel Programming |