VBA: function to display results
Solved
nchristedem
Posted messages
24
Status
Member
-
nchristedem Posted messages 24 Status Member -
nchristedem Posted messages 24 Status Member -
Hello,
I am a beginner in VBA. I am looking for a function that allows me to display multiple results in a dialog box. MsgBox only allows me to display a single value, while I would like to display several at once (so I don't have to click OK multiple times). Thank you.
I am a beginner in VBA. I am looking for a function that allows me to display multiple results in a dialog box. MsgBox only allows me to display a single value, while I would like to display several at once (so I don't have to click OK multiple times). Thank you.
Configuration: Windows 2000 Firefox 3.0.10
Related links:
- Display value of textbox
- code to display an Excel sheet (vba)
- Private Sub Workbook_Open() Application.ScreenUpdating = False End Sub Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.ScreenUpdating = True End Sub
- Display the result of a calculation from the two textboxes in a label.
- excel hide and show rows vba
- VBA Excel: Code for summing a column function
4 answers
-
Hello,
MsgBox allows me to display a single
Well, no, msgbox allows you to display as many values as you wantmsgbox "Here is value 1: " & val1 & vbcrlf & "Here is value 2: " & val2 & vbcrlf & "Here is value 3: " & val3
On the other hand, what is i
--
106485010510997108 -
Re,
Maybe you should show what code you are using
Here is an exampleSub example_msgbox() Dim val1 as Integer, val2 as Integer, val3 as Integer val1 = 10 val2 = 20 val3 = 30 MsgBox "Here is value 1: " & val1 & vbcrlf & "Here is value 2: " & val2 & vbcrlf & "Here is value 3: " & val3 End Sub
--
106485010510997108 -
I tried your code, but it's exactly the text that it displays to me. I don't have the variable values (results).
-
Thank you very much, it works very, very well. I didn't quite understand your code in the first message. Hi.