+ Reply to Thread
Results 1 to 6 of 6

IF statements with a module

  1. #1
    Registered User
    Join Date
    08-27-2008
    Location
    Alameda, CA
    Posts
    6

    IF statements with a module

    I am a Novice and I am trying to do a calculation of the following
    Please Login or Register  to view this content.
    I want the final calcuatlon would show as below and I would like the code to not list duplicate text as well. This calculation will be for multiple worksheets.

    All Blocks= Apple, Grapes, Lemon
    All Pass= Apple, Orange
    All Fail= Lemon

    Plus I have attach my excel for clarification as well its in MS excel 2007

    Thanks in advance,

    Lostboyca
    Attached Files Attached Files
    Last edited by Leith Ross; 08-28-2008 at 12:58 AM. Reason: to make the text more readable

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    macro

    Hi
    attached is a file with macro.
    Ravi
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-27-2008
    Location
    Alameda, CA
    Posts
    6
    I do not want to have to click on a button I want it to show up automatically when the excel is launched. Plus this is a small peiece of a bigger picture is there a way where I can just put in the formula on a cell to trigger a module?

    Maybe have some sort of formula for the cell that states like IF Sheet2 = Block then run a module that will trigger the block information...
    Last edited by lostboyca; 08-28-2008 at 02:51 AM.

  4. #4
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    macro

    Hi
    The solution provided will be restricted to the information given in your message. Preferably give us a complete picture in the beginning so that we don't work on the same problem again and again. Try the macro in the file attached.
    Ravi
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-27-2008
    Location
    Alameda, CA
    Posts
    6
    hmmm... I don't want any popup box plus I think the code you have is to specifc for that excel.

    I have attach the real file which i need the code to be in as well so you can see what I'm really trying to accomplish.

    I want the calculation to retrieve from 01_Interface tab and so forth. The information will be combine to Statistics Tab A35, A36

    I will be using the same excel layout to do other testcases as well so it needs to be simple enough that I do not have to change the module code for example I would like it to be simple enought to add two or three more tabs and triggering the code.

    There are codes in that excel which I'm experimenting with as well to get my desired output

    Thanks,
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-27-2008
    Location
    Alameda, CA
    Posts
    6
    great that works thanks a million

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Case Select statements with "if" statements
    By compulsiveguile in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2008, 12:05 PM
  2. module name changes on it's own
    By tonywig in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2007, 07:41 AM
  3. import excel module
    By slmandle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2007, 02:16 PM
  4. How to run a commandbar controled module inside a Macro
    By betty77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2006, 10:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1