Create PopUp window with results from excel

sergiom920

New Member
Joined
Nov 2, 2005
Messages
12
Hi, I have a spreadhsheet with a bunch of numbers. I would like to create a
button that would then display those numbers as a popup window.

Any ideas?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
hi,

This code will display the contents of A1 thru A5 as separate lines in the messagebox:

Code:
Dim R As Range
Dim sText As String
Dim WS As Worksheet

Set WS = Sheets("Sheet1")
For Each R In WS.Range("A1:A5")
    sText = sText & R.Text & vbCrLf
Next R
MsgBox sText
 
Upvote 0

Forum statistics

Threads
1,216,496
Messages
6,130,987
Members
449,612
Latest member
geniusufo007

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top