borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (IF ALPHABETIC test) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Populate Range using VBA
Poster Message
jds1
Level: Trainee

Registered: 28-06-2008
Posts: 1

icon Populate Range using VBA

Need a class that will allow me to populate a passed range (user defined) with values based on calculations done in a function.  The function is called from an excel cell.
Example cell formula is =DoCalc(Method as range, DataR1 as range, DataR2 as range, ResRange1 as range, ResRange2 as range) as double

The function calculates and returns a double to the calling cell.  That is no problem.  I would like to populate ResRange1 and ResRange2 too.

Can anybody help?

See the attachment. The formulacell is in yellow and I would like to populate the green cells.


JDS1

____________________________
jds1

____________________________
Attached:
Test.zip 12 KB (Downloads: 0)

28-06-2008 at 05:42 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Populate Range using VBA
Next Topic (IF ALPHABETIC test) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder