Question: Write a VisualBasic code for macros in Excel , that calculates A + B and A x B, where A and B are two-dimensional arrays.

Write a VisualBasic code for macros in Excel, that calculates A + B and A x B, where A and B are two-dimensional arrays. (Do not use the Excel spreadsheet functions to calculate A + B or A x B. User For Next loops to perform the operations.) In writing the code, consider the following.

Ask the users whether they want to use the data given below to test the code or use their own data. If the users choose to read the data from the table, copy this data in two two-dimensional arrays A and B. Otherwise, ask the users to enter the size of each array and the corresponding elements.

Ask the users whether they want to perform the A + B or A x B operation. Prompt the users if the size of the arrays is not suitable for the chose operation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!