Solved

regarding compoent creation

Posted on 2001-06-14
5
131 Views
Last Modified: 2010-05-02
the algorithm looks like this
=IF(P14>=100,1000,500) in excel where p14 represents a cell

i want this to be interpreted in vb logic within module.
how can it be done?please explain me
      whether  I have to convert this into vb code consists of if structure.how is it possible

please explain me asap

thanks in advance

vbdoubt
0
Comment
Question by:vbdoubt
5 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 10 total points
ID: 6190336
Result = Iif(Value>=100,1000,500)

Where Value is the equivalent of the cell's contents.

So if Value = 10 Then Result = 500, if Value = 150 then Result = 1000
0
 

Author Comment

by:vbdoubt
ID: 6190358

thanks for immediate reply.

if there is any sum,avg function instead of value.then what can i do? please explain me ASAP.



THANKS IN ADVANCE
VBDOUBT


0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6190413
See my question in your other thread, I think that I need to better understand what you are trying to achieve.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7136121
Moderator, my recommended disposition is:

    Accept TimCottee's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7168363
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now