+ Reply to Thread
Results 1 to 2 of 2

Displaying Data ranges both in rows and columns in the Message box

  1. #1
    Registered User
    Join Date
    12-01-2013
    Location
    Cochin, India
    MS-Off Ver
    Excel 2013
    Posts
    1

    Post Displaying Data ranges both in rows and columns in the Message box

    Hi Everyone,

    Im new to VBA and Macro and need some help to display the content of the sheet as is in the message box.....

    As of now the code only show one column that i could find through the net...

    I need to show all the columns and rows......
    Excel sheet attached....



    Sub Iknowvba()
    msg = "DUE LIST ?"
    ans = MsgBox(msg, vbYesNo)
    If ans = vbYes Then MsgBox "Due List : " & Join(Application.WorksheetFunction.Transpose(Range("E7:E30").Value), Chr$(10))
    If ans = vbNo Then MsgBox " Thanks"

    End Sub
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Displaying Data ranges both in rows and columns in the Message box

    Welcome to the forum.

    Pls take some minutes to read forum rules and specially-in this case- rule#3
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help using Names Ranges to sum data in rows across variable numbers of columns
    By azzurri825 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2013, 05:15 AM
  2. [SOLVED] comparing the rows in different columns and displaying the results
    By gencoglu27 in forum Excel General
    Replies: 12
    Last Post: 07-23-2013, 05:31 AM
  3. displaying in a message box whole rows depending on a cell's value
    By ordeayn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2012, 06:40 AM
  4. Pivot Table - Displaying Data Rows into Columns
    By quasimoto in forum Excel General
    Replies: 3
    Last Post: 02-11-2011, 10:03 PM
  5. Displaying a Pie chart with all Columns and Rows
    By dreams in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-27-2009, 05:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1