Example MsgBox with a Prompt, yesNoCancel [Title]

I have tried over and over to put together a working Message box

Dim Prompt As String, Tilte As String, Status As String, Status2 As String
Dim Buttons As Integer

Prompt = "Welcome to Learning 5"
Title = "Unload File Check"
Status = "Was Unloaded"
Status2 = "File NOT Unloaded"
Buttons = vbOKOnly + vbCancel
MsgBox (Prompt)

I got this far, the Prompt shows the "Welcome to Learning 5"

Every time I tried adding second line of text with the & vbCrLf & Status got an error, I tried the "Status", I tried [Status]

If I just did (prompt + Status it worked but a mess, wanted two lines, plus I wanted the vbYesNoCancel buttons to pop-Up and I wanted a Title for the box

Anyway I called myself searching various ways

MsgBox Examples, Examples of MsgBox Function. Found a lot on Excel on-line but could not seem to make a working one for a starting point.

Jan gave me an example of Macro using variable and I was able to follow the working format on that. I keep looking for a working example

to learn from. Someone please help? No Will someone help me

This also was a failure MsgBox "Test Message Wanted" & CStr(This), vbOKOnly, + CrLf "Check"

Parents
  • ood morning
    I apologize for my poor English
    if he can help this
    MsgBox "Aggiornate " & vbNewLine & cont & " crocette " & vbNewLine & contaquo & " quote " & vbNewLine & contaprof & " profondita " & vbNewLine & "Tag non corretti " & contsaltati, 0, "Correzione "





    MsgBox "Aggiornate " & vbNewLine & cont & " crocette " & vbNewLine & contaquo & " quote " & vbNewLine & contaprof & " profondita " & vbNewLine & "Tag non corretti " & contsaltati, 0, "Correzione "
    
    regards

    Massimo Callegher
Reply
  • ood morning
    I apologize for my poor English
    if he can help this
    MsgBox "Aggiornate " & vbNewLine & cont & " crocette " & vbNewLine & contaquo & " quote " & vbNewLine & contaprof & " profondita " & vbNewLine & "Tag non corretti " & contsaltati, 0, "Correzione "





    MsgBox "Aggiornate " & vbNewLine & cont & " crocette " & vbNewLine & contaquo & " quote " & vbNewLine & contaprof & " profondita " & vbNewLine & "Tag non corretti " & contsaltati, 0, "Correzione "
    
    regards

    Massimo Callegher
Children
  • Massimo Callegher - Thank you sir, I just noticed this one and making a copy for future reference in my Macro called MsgBoxTest()

    where I am trying to learn and save working examples. I was trying the abCrLf I think

    well 3:23am my time, got to get some rest so thank yo and Jon (as always) and now 

    Volker Hüfner whow also has helped. Mr Jan also has given invaluable help. After I have to be taken to the wood shed... (((c; I really get my plow cleaned at times and than I stay off a week or so and lick my wounds (((( c; @ 74 sorta thin skinned in more ways than 1 like my hands. Ok thanks to all and I will keep checking if any updates or additions 

    Version: MicroStation V8i SS 10

    RJB Phillips III (Richard) Praise the Lord for His Mercy and grace in Christ Jesus

  • This was such a big help and thank you, I have referred back to it several times .

    So thank you again. I learned from all the comments and practice, A real blessing

    Version: MicroStation V8i SS 10

    RJB Phillips III (Richard) Praise the Lord for His Mercy and grace in Christ Jesus