Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone please tell me how to create a macro that, when run, displays
the value of a particular cell? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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) "RUSS" wrote in message ... Can someone please tell me how to create a macro that, when run, displays the value of a particular cell? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, Mr. Pearson - one other question - how would I add a second line
to the msgbox in your example? "Chip Pearson" wrote in message ... 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) "RUSS" wrote in message ... Can someone please tell me how to create a macro that, when run, displays the value of a particular cell? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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) RUSS wrote: Thank you, Mr. Pearson - one other question - how would I add a second line to the msgbox in your example? "Chip Pearson" wrote in message ... 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) "RUSS" wrote in message ... Can someone please tell me how to create a macro that, when run, displays the value of a particular cell? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Popup window on open | Excel Discussion (Misc queries) | |||
Formatted popup window | Excel Programming | |||
Popup window (plz replay) | Excel Programming | |||
popup message window | Excel Programming | |||
Popup message window with name | Excel Programming |