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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

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,494
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???
 

Watch MrExcel Video

Forum statistics

Threads
1,129,553
Messages
5,636,982
Members
416,953
Latest member
broexc

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