Hello I am struggling to make this assignment happen:Create a macro procedure that asks for three integers (one at a time) and displays their sum in a message box.
Insert a module into the project, then insert a macro procedure named AddThreeNumbers. Code this procedure so that when it is executed, it will ask for three integers (one at a time), store them into three variables respectively, computes their sum, and display “The sum of [1st num], [2nd Num], and [3rd Num] is [the sum of the three numbers].” where each square bracket should be replaced by the numbers that the user put in. That is, if the user put in 10, 20, and 30 into the three boxes, it should display “The sum of 10, 20, and 30 is 60.” Make sure you declare and use appropriate variables.
1. The message box should have the title, “My Own Adder”.
2. Insert an ActiveX Command button displaying a picture of your choice, with the caption, “I Add Three Integers.”
3. Link the AddThreeNumbers procedure to the button so that when the button is clicked, the procedure is executed.
4. Save and submit the workbook.
I currently have this code but my input boxes are not being saved as a variable.
Now I am getting an error message in my msgbox code when I add the Sum function. Addtionally, I still get the words "myValue..." in the message box not the numbers entered into the inputbox.![]()
Please Login or Register to view this content.
Bookmarks