MsgBox To Read A Value of a cell

R

Rob

I was currently trying to do the answer directly into the MsgBox, but it
appears I need to locate the Answer within the Cell, the cell contains the
formula =Counta "m"
(counts number of items within Column "m") if it could be done directly
without locating the cell with the answer would be appreciated, otherwise I'm
having difficulty in getting the MsgBox to read the answer within the cell, I
assumed it was something like" Range.Value", could somebody help here please.
 
R

RonaldF

Sub test()
MsgBox Range("A1").Value
End Sub

With in range A1 the value for the messagebox
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top