multiline inputbox or msgbox message

G

Guest

Is there a piece of code that allows you to have a multiline message in an
inputbox or msgbox so that it appears as such:

Which do you want:
A for Apples
B for Bananna
c for Coconut

Thanks!
 
D

Die_Another_Day

Dim FruitBasket As String
FruitBasket = Application.InputBox("Which Do you Want:" & vbCrLf & "A
for Apple" & vbCrLf & "B for Banana" & vbCrLf & "C for Coconut", "I'm a
basket Case :)", , , , , , 2)

HTH

Die_Another_Day
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top