+ Reply to Thread
Results 1 to 3 of 3

Displaying the outcome of a Formula in a message Box VBA

  1. #1
    Registered User
    Join Date
    03-16-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Displaying the outcome of a Formula in a message Box VBA

    Hello all,

    I am new to VBA and have a little problem. So i will explain what my macro does and then what i want it to do to give you guys a clear picture.

    What It does : it sums all the numbers in column B that have a "B" corresponding to them in Column A into Cell C1
    it sums all the numbers in column B that have a "S" corresponding to them in Column A into Cell D1
    then it finds the difference D1-C1 into E1
    then it multiplies E1 by 10 (E1*10) to F1
    and it finally Displays the value of F1 in a MsgBox

    What i want it to do : I want the code to carry out the same process but with out displaying anything in cells C1,D1,E1 and F1
    I just want the final answer which is in F1 to be displayed in a msgbox and nowhere else.

    I have attached the workbook to hopefully make it a bit clearer, i know im not the best at explaining things

    Thanks

    Darby
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Displaying the outcome of a Formula in a message Box VBA

    Hi

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    03-16-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Displaying the outcome of a Formula in a message Box VBA

    ty Rylo you made it look easy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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