Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Message Box with a list
Is it possible to have a Message Box pop up and show a list of variables. I
want a message to pop-up and show a list of people that have not updated their reports. I have a list of names that generates from a seperate section of code. I want the message box to pull from this list and display the names. Also, the data is on a seperate sheet from where the MsgBox will appear. Example: The following people have not completed their reports: Bill BoB Tony Sue Any ideas? (Using Excel 2003) Thanks in advance! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Message Box with a list
hi,
it might be possible but post your code so we'll know what your doing. regards FSt1 "John" wrote: Is it possible to have a Message Box pop up and show a list of variables. I want a message to pop-up and show a list of people that have not updated their reports. I have a list of names that generates from a seperate section of code. I want the message box to pull from this list and display the names. Also, the data is on a seperate sheet from where the MsgBox will appear. Example: The following people have not completed their reports: Bill BoB Tony Sue Any ideas? (Using Excel 2003) Thanks in advance! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Message Box with a list
Let's say the namelist is on Sheet3 column A:
Sub popup() Dim s As String ch = Chr(10) s = "The following people have not completed their reports:" Set sh = Sheets("Sheet3") n = sh.Cells(Rows.Count, "A").End(xlUp).Row For i = 1 To n s = s & ch & sh.Cells(i, "A").Value Next MsgBox (s) End Sub -- Gary''s Student - gsnu200794 "John" wrote: Is it possible to have a Message Box pop up and show a list of variables. I want a message to pop-up and show a list of people that have not updated their reports. I have a list of names that generates from a seperate section of code. I want the message box to pull from this list and display the names. Also, the data is on a seperate sheet from where the MsgBox will appear. Example: The following people have not completed their reports: Bill BoB Tony Sue Any ideas? (Using Excel 2003) Thanks in advance! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Message Box with a list
Perfect! Thank-you!
"Gary''s Student" wrote: Let's say the namelist is on Sheet3 column A: Sub popup() Dim s As String ch = Chr(10) s = "The following people have not completed their reports:" Set sh = Sheets("Sheet3") n = sh.Cells(Rows.Count, "A").End(xlUp).Row For i = 1 To n s = s & ch & sh.Cells(i, "A").Value Next MsgBox (s) End Sub -- Gary''s Student - gsnu200794 "John" wrote: Is it possible to have a Message Box pop up and show a list of variables. I want a message to pop-up and show a list of people that have not updated their reports. I have a list of names that generates from a seperate section of code. I want the message box to pull from this list and display the names. Also, the data is on a seperate sheet from where the MsgBox will appear. Example: The following people have not completed their reports: Bill BoB Tony Sue Any ideas? (Using Excel 2003) Thanks in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
create new list from list A, but with exclusions from a list B | Excel Worksheet Functions | |||
validation list--list depends on the selection of first list | New Users to Excel | |||
list 1 has 400 names List 2 has 4000. find manes from list 1 on 2 | Excel Worksheet Functions | |||
find names on list 1 in list 2. list 1 4000 names list 2 400 name | Excel Worksheet Functions | |||
changing the message in an error message | Excel Worksheet Functions |