我有 TheMax 和 TheMin 子程序来显示同一列的最大值/最小值。如何在同一个 MsgBox 中显示两个值?原始脚本:
Sub ShowMax()
Dim TheMax As Double
TheMax = WorksheetFunction.Max (Range("A:A"))
MsgBox TheMax
End Sub
Sub ShowMin()
Dim TheMin As Double
TheMin = WorksheetFunction.Min (Range("A:A"))
MsgBox TheMin
End Sub
如您所见,现在每个值都显示在单独的 MsgBox 中。我想在一个 MsgBox 中显示两者。谢谢你。