LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How Do I Display a Range of Cells in A Message Box Using VBA?

Thanks Mudraker,

The code I used is:

Dim c As Range
Dim sTxt As String

For Each c In ThisWorkbook.Sheets("Calculation ").Range("g5:h19")
sTxt = sTxt & vbLf & c.Value
Next c

MsgBox sTxt


It worked perfectly... Thanks Again :

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COMPARING TEXT IN A RANGE OF CELLS AND DISPLAY IT IN ANOTHER. John Excel Worksheet Functions 1 February 25th 09 12:35 PM
display text in a cell in a range of cells Shu of AZ Excel Discussion (Misc queries) 1 January 25th 09 05:09 AM
display a range of cells editible cells based on matching date Miki Excel Worksheet Functions 0 October 10th 07 03:27 PM
How do I get Excel to display a range of cells with a check box? bobm Excel Discussion (Misc queries) 2 October 21st 05 07:37 PM
Display first, second, etc Nonblank Cells in a Range Jeremy N. Excel Worksheet Functions 12 September 25th 05 01:47 PM


All times are GMT +1. The time now is 06:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"