Results 1 to 3 of 3

Msgbox results

Threaded View

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2007
    Posts
    9

    Msgbox results

    I think you can figure out from my code below that I am trying to do some calculations in my sheet and have the answer show up with a Msgbox. The cells that are calculated are currency "$" and the answer should show as "$" too. I'm pretty sure im going about it the wrong way so any help is muchly appreciated.

    Sub Reconcile()
     Dim Deb As String
     Dim Cred As String
     Dim Clr As String
     Dim Frm As String
     Deb = Sum("D3:D10000")
     Cred = Sum("F2:F10000")
     Clr = SumIf("E5:E10000,"",D5:D10000")
     Frm = Sum - Deb + Clr
     MsgBox ("Bank balance should be" &"$Frm")
    End Sub
    Last edited by kistonce; 05-18-2010 at 11:31 PM.

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