Creating a VBA Program

mhtoo2127

New Member
Joined
Feb 24, 2021
Messages
1
Write a VBA program that will use the method of selected points (see the Engineering Topics document in the Lectures Folder on MyCourses, Slides 124-131) to solve for the m and b values in the selected equation. The program should ask the user which type of function they would like to fit (linear, exponential, or power), then ask the user to input the x and y coordinates for two data points to use for the method of selected points. The program will calculate the equation parameters (m and b), and display the fitted function in a dialog box.
Use the following data points (A and B) to test your program for the three cases shown
1) Linear function (points taken from a rectilinear graph): A(10, 60), B(35, 165)
2) Exponential function (points taken from a semi-log graph): A(1.5, 11), B(6, 175)
3) Power function (points taken from a log-log graph): A(15, 33), B(65, 470)
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I suspect your instructor wants to see your work, not what others internet people can do. Perhaps if you asked some more specific questions, versus just (apparently) asking someone to do what's clearly a class assignment? You'll learn more that way anyway.
 
Upvote 0
You also need to show us what you have done / achieved so far rowards completing this assignment.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top