![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 82
|
Hello,
Im trying to create a function to solve linear equations in excel. I have the algorithm, but I need to be able to input 6 variables 2 columns by 3 rows. The first column go in order 1, 2 3 go into x1,x2,x3 as integers, and the second column 1,2,3 go into y1,y2,y3. I just want to be able to select matrix and have the data input into the macro. Im grateful for help Thanks Casey |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Brampton
Posts: 324
|
Declare an array for three rows and two columns as follows:
Dim VarArray(2,1) As Double then initialize the elements based on the cells value eg.: VarArray(0,0)=Cells(r,c).Value |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|