Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
List of text in a message box arranged in rows
I need to create a message that is activated with a macro, in the message I
need to put a listo of items organised by rows, for example " Inventory Control - WH1 - INFO Item 1 Item 2 Item 3 .. .. OK How do I have to wite the code in the message box : MsgBox "Item 1", vbMsgBoxRtlReading, "MMR" to include the other rows and they are displayed in rows on the screen ? -- Moises |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
List of text in a message box arranged in rows
Withe your items in ColA from row2 to row10 try the below macro....Adjust to
suit Sub Macro1() Dim lngRow As Long Dim strMessage As String For lngRow = 2 To 10 If Trim(Range("A" & lngRow)) < "" Then _ strMessage = strMessage & vbLf & Range("A" & lngRow) Next MsgBox strMessage End Sub -- If this post helps click Yes --------------- Jacob Skaria "Moises" wrote: I need to create a message that is activated with a macro, in the message I need to put a listo of items organised by rows, for example " Inventory Control - WH1 - INFO Item 1 Item 2 Item 3 . . OK How do I have to wite the code in the message box : MsgBox "Item 1", vbMsgBoxRtlReading, "MMR" to include the other rows and they are displayed in rows on the screen ? -- Moises |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to have Sheet1 list Sheet2 rows matching text? | Excel Worksheet Functions | |||
Function to sum a list of rows with different text except for one | Excel Worksheet Functions | |||
Deleting Rows Automatically using a Text File List | Excel Discussion (Misc queries) | |||
Programmatically Sorte Rows that are Arranged in Subgroups. | Excel Programming | |||
Printing from Arranged View | Excel Discussion (Misc queries) |