Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to compute the cross products of two vectors using visual basic
|
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This should get you started
http://support.microsoft.com/kb/121820 -- HTH, Barb Reinhardt If this post was helpful to you, please click YES below. "TESHA WHYTE" wrote: I want to compute the cross products of two vectors using visual basic |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Code: -------------------- Function vCP(v1 As Variant, v2 As Variant) As Variant vCP = Array(v1(2) * v2(3) - v1(3) * v2(2), _ v1(3) * v2(1) - v1(1) * v2(3), _ v1(1) * v2(2) - v1(2) * v2(1)) End Function -------------------- Returns a 1x3 variant containing the cross product of the two 3-element row or column vectors. Example usage: =Cross(A1:C1,A2:C2) Must be array-entered. Kind regards, -- shg ------------------------------------------------------------------------ shg's Profile: http://www.thecodecage.com/forumz/member.php?userid=13 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=25839 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
visual basic. find copy row past into new sheet | Excel Worksheet Functions | |||
microsoft visual basic compile error can't find library | Setting up and Configuration of Excel | |||
changing the visual basic in office 2003 to visual studio net | Excel Discussion (Misc queries) | |||
Visual Basic | Excel Discussion (Misc queries) | |||
Visual Basic Help | Excel Discussion (Misc queries) |