M
mburkett
I would like to display a warning box with x number of variables. The
problem is if there is only 1 variable, and I write the dialog for say
10 total, the dialog box size looks odd. I would like to step through
10 variables and only put the ones that are not null in the dialog
box. Below is an example of how I am doing it now. The example below
has 3 variables but I would like to display the dialog box with only 1
variable if the other 2 are blank.
Sheets("Sheet1").Select
Range("b8").Select
trd1 = Selection.Value
Range("b9").Select
trd2 = Selection.Value
Range("b10").Select
trd3 = Selection.Value
Range("b11").Select
Msg = "Warning:" & Chr(10) & Chr(10) + trd1 & Chr(10) + trd2 & Chr(10)
+ trd3 ...
Title = " Pending FI Trades"
Message = MsgBox(Msg, Style, Title)
problem is if there is only 1 variable, and I write the dialog for say
10 total, the dialog box size looks odd. I would like to step through
10 variables and only put the ones that are not null in the dialog
box. Below is an example of how I am doing it now. The example below
has 3 variables but I would like to display the dialog box with only 1
variable if the other 2 are blank.
Sheets("Sheet1").Select
Range("b8").Select
trd1 = Selection.Value
Range("b9").Select
trd2 = Selection.Value
Range("b10").Select
trd3 = Selection.Value
Range("b11").Select
Msg = "Warning:" & Chr(10) & Chr(10) + trd1 & Chr(10) + trd2 & Chr(10)
+ trd3 ...
Title = " Pending FI Trades"
Message = MsgBox(Msg, Style, Title)