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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

sergiom920

New Member
Joined
Nov 2, 2005
Messages
12
I wasnt able to ge the code to work..this line is not working. sao1=range("a1").value
 

bartoni

Active Member
Joined
Jun 10, 2003
Messages
296

ADVERTISEMENT

I believe it should say

msgbox instead of msbox
 

sergiom920

New Member
Joined
Nov 2, 2005
Messages
12

ADVERTISEMENT

Is there a way to get a range of cells Insted of just one???
 

al_b_cnu

Well-known Member
Joined
Jul 18, 2003
Messages
4,526
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
 

sergiom920

New Member
Joined
Nov 2, 2005
Messages
12
Does anyone know if there is a way to attach a graph to a comand button to display on a new window???
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,415
Messages
5,837,110
Members
430,477
Latest member
roseinsydney

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
Top