Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all,
Anyone know how to take data from any give cell(s) and place in a message box? I have 2 cells (J9 and J19) and i want this data in the message box. Dim ans As Long ans = MsgBox("Supervisor Name: (CELL VALUE J19) & Agent Name: (Cell VALUE J9). Is this correct?", vbYesNo + vbQuestion) Thx in advance!!! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
this works in 03 Sub messinbot() Dim ans As Long Dim r As String Dim s As String r = Range("J19").Value s = Range("J9").Value ans = MsgBox("Supervisor Name: " & r & " & Agent Name: " & s & _ ". Is this correct?", vbYesNo + vbQuestion) End Sub regards FSt1 "Peruanos72" wrote: Hello all, Anyone know how to take data from any give cell(s) and place in a message box? I have 2 cells (J9 and J19) and i want this data in the message box. Dim ans As Long ans = MsgBox("Supervisor Name: (CELL VALUE J19) & Agent Name: (Cell VALUE J9). Is this correct?", vbYesNo + vbQuestion) Thx in advance!!! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mar 13, 6:24*pm, FSt1 wrote:
hi this works in 03 Sub messinbot() Dim ans As Long Dim r As String Dim s As String r = Range("J19").Value s = Range("J9").Value ans = MsgBox("Supervisor Name: " & r & " & Agent Name: " & s & _ * * ". Is this correct?", vbYesNo + vbQuestion) End Sub regards FSt1 "Peruanos72" wrote: Hello all, Anyone know how to take data from any give cell(s) and place in a message box? I have 2 cells (J9 and J19) and i want this data in the message box. Dim ans As Long ans = MsgBox("Supervisor Name: (CELL VALUE J19) & Agent Name: (Cell VALUE J9). Is this correct?", vbYesNo + vbQuestion) Thx in advance!!! Something needs to happen when you select yes or no Sub messinbot() Dim ans As Long Dim r As String Dim s As String r = Range("J19").Value s = Range("J9").Value ans = MsgBox("Supervisor Name: " & r & " & Agent Name: " & s & _ ". Is this correct?", vbYesNo + vbQuestion) If ans = vbYes Then MsgBox "You selected Yes" If ans = vbNo Then MsgBox "You selected no" End Sub |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Curly. I've got actions for the yes no answers.
"CurlyDave" wrote: On Mar 13, 6:24 pm, FSt1 wrote: hi this works in 03 Sub messinbot() Dim ans As Long Dim r As String Dim s As String r = Range("J19").Value s = Range("J9").Value ans = MsgBox("Supervisor Name: " & r & " & Agent Name: " & s & _ ". Is this correct?", vbYesNo + vbQuestion) End Sub regards FSt1 "Peruanos72" wrote: Hello all, Anyone know how to take data from any give cell(s) and place in a message box? I have 2 cells (J9 and J19) and i want this data in the message box. Dim ans As Long ans = MsgBox("Supervisor Name: (CELL VALUE J19) & Agent Name: (Cell VALUE J9). Is this correct?", vbYesNo + vbQuestion) Thx in advance!!! Something needs to happen when you select yes or no Sub messinbot() Dim ans As Long Dim r As String Dim s As String r = Range("J19").Value s = Range("J9").Value ans = MsgBox("Supervisor Name: " & r & " & Agent Name: " & s & _ ". Is this correct?", vbYesNo + vbQuestion) If ans = vbYes Then MsgBox "You selected Yes" If ans = vbNo Then MsgBox "You selected no" End Sub |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That did it. Thanks!!!
"FSt1" wrote: hi this works in 03 Sub messinbot() Dim ans As Long Dim r As String Dim s As String r = Range("J19").Value s = Range("J9").Value ans = MsgBox("Supervisor Name: " & r & " & Agent Name: " & s & _ ". Is this correct?", vbYesNo + vbQuestion) End Sub regards FSt1 "Peruanos72" wrote: Hello all, Anyone know how to take data from any give cell(s) and place in a message box? I have 2 cells (J9 and J19) and i want this data in the message box. Dim ans As Long ans = MsgBox("Supervisor Name: (CELL VALUE J19) & Agent Name: (Cell VALUE J9). Is this correct?", vbYesNo + vbQuestion) Thx in advance!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Some of the changes cannot be viewed in track changes history. | Setting up and Configuration of Excel | |||
Date data not viewed as Date? | Excel Discussion (Misc queries) | |||
Intercept/replace standard 'cell protected' message with my own message? | Excel Programming | |||
No toolbars when viewed in IE | Excel Discussion (Misc queries) | |||
change data in rows to be viewed in columns | Excel Discussion (Misc queries) |