ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   DISPLAY RANGE AT MSGBOX (https://www.excelbanter.com/excel-programming/278005-display-range-msgbox.html)

GUS

DISPLAY RANGE AT MSGBOX
 
how can i add in a msgbox , a range of cells

I have 10 cells in every range
and i want all the cells to be shown in the msgbox
whenever i run the apropriate macro




Don Guillett[_4_]

DISPLAY RANGE AT MSGBOX
 
Something like this maybe.
BTW Please use proper case in you subject line as you were kind enough to
use in the msg.

Sub message()
MsgBox [h1] & vbCr & [h3]
End Sub

"GUS" wrote in message
...
how can i add in a msgbox , a range of cells

I have 10 cells in every range
and i want all the cells to be shown in the msgbox
whenever i run the apropriate macro






Tom Ogilvy

DISPLAY RANGE AT MSGBOX
 
Sub ShowCells()
msg = ""
for each cell in selection
msg = msg & cell.value & vbNewLine
Next
msgbox msg
End Sub

--
Regards,
Tom Ogilvy

"GUS" wrote in message
...
how can i add in a msgbox , a range of cells

I have 10 cells in every range
and i want all the cells to be shown in the msgbox
whenever i run the apropriate macro







All times are GMT +1. The time now is 08:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com