Popup Window

  • Thread starter Thread starter RUSS
  • Start date Start date
R

RUSS

Can someone please tell me how to create a macro that, when run, displays
the value of a particular cell?
 
In its simplest form, the code would be as follows:

Sub AAA()
MsgBox "Value: " & ThisWorkbook.Worksheets("Sheet1").Range("A1").Text
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
Thank you, Mr. Pearson - one other question - how would I add a second line
to the msgbox in your example?
 
msgbox "Line 1" & vblf & "line2"

is one way.

If you share with people who use Mac's:

msgbox "Line 1" & vbnewline & "line2"

(It'll work on either platform)
 

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

Similar Threads


Back
Top