MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

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
Prev Previous Post   Next Post Next
Old Mar 30th, 2004, 01:23 AM   #1
jcvoth
 
Join Date: Feb 2004
Posts: 198
Default Calculation within VB

Greetings all!

I would like to find a way to solve simple equations through VB and print the result in something like a msgbox.

Here is an example:

******** ******************** ************************************************************************>
Microsoft Excel - Book4___Running: 11.0 : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
1
NameSales**
2
Bob4**
3
Joe3**
4
Jim2**
5
Jane5**
6
****
Sheet1*

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


What I would like is to click a command button, which will trigger a new sub that will sum the range B1:B5 and print the result [14] in a msgbox.

I know how to push an equation into a particular cell, but I would like to run the whole calculation through VB.

Thank you all for your help!
-Jarrod
jcvoth is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 08:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.