Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default MMult function . Highly frustrating experience please help.

With Application

matrixfinal = .MMult(mat1,mat2)

end with

The above programme works in one spreadsheet. The same syntax does not work
in another programme and "type mismatch" error comes as the answer.

What is the way Excel remembers a matrix created by a routine like
mat(1,Q) where q changes from 1 to 7 say. There are 7 elements. mat(1,1) to
mat(1,7). Now this is a row matrix,from the construction.
when I multiply this one with another 7x7 matrix ,by the above .MMult command
the type mismatch comes.

2. Then I tried changing both the matrix to 7X7. Yet again Type mismatch
error comes.

Going on for some time.

Dear MVPs and other experts, please help.

with regards

--
beetal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default MMult function . Highly frustrating experience please help.

You may want to check the type throughout your code for matrixfinal, mat1 and
mat2. I've seen problems if a variable is declared one way in one piece of
code, and either differently declared or not declared in other pieces of
code.
--
HTH,
Barb Reinhardt




"BEETAL" wrote:

With Application

matrixfinal = .MMult(mat1,mat2)

end with

The above programme works in one spreadsheet. The same syntax does not work
in another programme and "type mismatch" error comes as the answer.

What is the way Excel remembers a matrix created by a routine like
mat(1,Q) where q changes from 1 to 7 say. There are 7 elements. mat(1,1) to
mat(1,7). Now this is a row matrix,from the construction.
when I multiply this one with another 7x7 matrix ,by the above .MMult command
the type mismatch comes.

2. Then I tried changing both the matrix to 7X7. Yet again Type mismatch
error comes.

Going on for some time.

Dear MVPs and other experts, please help.

with regards

--
beetal

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default MMult function . Highly frustrating experience please help.

do you use

OPTION EXPLICIT

as the first line of the code module?

"BEETAL" wrote:

With Application

matrixfinal = .MMult(mat1,mat2)

end with

The above programme works in one spreadsheet. The same syntax does not work
in another programme and "type mismatch" error comes as the answer.

What is the way Excel remembers a matrix created by a routine like
mat(1,Q) where q changes from 1 to 7 say. There are 7 elements. mat(1,1) to
mat(1,7). Now this is a row matrix,from the construction.
when I multiply this one with another 7x7 matrix ,by the above .MMult command
the type mismatch comes.

2. Then I tried changing both the matrix to 7X7. Yet again Type mismatch
error comes.

Going on for some time.

Dear MVPs and other experts, please help.

with regards

--
beetal

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
Highly specific Exell Problem Kataklist Excel Programming 4 July 15th 08 08:37 AM
A highly profitable system? n1x5icbk[_2_] Excel Discussion (Misc queries) 0 May 9th 08 07:57 AM
Highly Complex Totals of Data PaulW Excel Discussion (Misc queries) 5 December 28th 06 05:05 PM
MMULt Worksheet Function TC8 Excel Worksheet Functions 2 April 26th 06 01:53 PM
VBA: Writing an array function (like MMult) fxmolden Excel Programming 4 November 13th 03 07:45 PM


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