LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default excel vba array basic operations

Hello,

I just want to create my own function in vba that involve basic array
operations. I've already implemented them in an excel spreadsheet and
I thought it would be rather straightforward to create the functions
in vba.

For instance, I wanted to test a function that perfoms a difference
between two arrays (3;5) and (1;2). In a worksheet I just select the
next two cells, enter the formula and CTRL-Shift-Enter and voila
(2;3). But when I select the appropiate range and call the following
function, it just doesn't work.

Function diffArray(vector1, vector2) As Variant
diffArray = vector1 - vector2
End Function

Any hint?
Gabriel
 
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
Simulation in operations research using Excel denise1082 via OfficeKB.com Excel Worksheet Functions 3 July 31st 06 10:46 AM
Excel Iterations? Conditional Operations? [email protected] Excel Discussion (Misc queries) 3 May 30th 06 08:41 AM
Excel Iterations? Conditional Operations? [email protected] Excel Worksheet Functions 4 May 30th 06 08:41 AM
OWC operations in Excel mondayisgreat Excel Discussion (Misc queries) 0 March 3rd 06 03:07 PM
Basic Array Question Annabelle Excel Discussion (Misc queries) 2 August 29th 05 10:50 PM


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