Solved

regarding compoent creation

Posted on 2001-06-14
5
134 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

680 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