Hello,
I need a VBA command with the message box containing the values at the end of the column in H & I.
I have attached an excel sheet with the Input.
I need an VBA command with the message box as " Balance of Dr = 4450.44 & Cr= 8584.73"
Last edited by mohan_rajun; 10-25-2010 at 08:06 AM.
One possibility
if you know the values are always the last cells in the column then you could just use an End(xlUp) based approach if preferred.Dim dblDr As Double, dblCr As Double dblDr = Application.Lookup(9.99E+307, Sheets("Sheet1").Columns("H")) dblCr = Application.Lookup(9.99E+307, Sheets("Sheet1").Columns("I")) MsgBox "Balance of Dr = " & Format(dblDr, "0.00") & " & Cr= " & Format(dblCr, "0.00")
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Hi,
It helped me... Thanks a lot !!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks