Execute a macro that obtains data from the worksheet

Assignment Help Computer Engineering
Reference no: EM132177355

VBA Problem

Create a UserForm on Sheet1 that contains the following controls:

A Run button will be used to execute a macro that obtains data from the worksheet. The data will be used to calculate a0, a1, r, and the percentage probability. These four values will be output to four TextBoxes on the UserForm.

A fifth TextBox will tell the user if the relationship between the x and y data is "significant" or "not significant".

A Clear button will clear all five TextBoxes.

A Quit button will close the UserForm.

Also create a button on Sheet1 that will load the UserForm.

Executing the Program

When the user clicks the Run button on the UserForm, your program will perform the following tasks:

1) Call a Sub procedure named GetInput that obtains the x and y values from Sheet1 and stores the data in a 2D array named xyvalues.

2) Call a Sub procedure named CalcLine that calculates the coefficients for the best-fit line (a0 and a1) using the data in xyvalues.

3) Call a Function procedure named CalcR that calculates the correlation coefficient (r) using the data in xyvalues

4) Call a Function procedure named CalcPerProb that determines the percentage probability using the values of r and N, and the values of rO in Table C.

5) Call a Sub procedure named GiveOutput that outputs a0, a1, r, the percentage probability, and whether the correlation is significant to the five TextBoxes.

Reference no: EM132177355

Questions Cloud

When there is a permanent decrease in money supply growth : When there is a permanent decrease in money supply growth. Real interest rate and real output remain constant. What will happen to the price level?
What is the bandwidth-delay product for communication : As part of your new job, you've been asked to work on the link layer protocol for a wireless data connection with a bandwidth of 100 Mbps to the ISS.
Mediaville spend all of their income on books : Suppose the residents of Mediaville spend all of their income on books, CDs, and DVDs. In 2009, they buy 400 books for $3,200, 200 CDs for $1,400
What are some of brazil economic strengths : What are some of Brazil's economic strengths? And what are some significant differences between Brazil and the United States?
Execute a macro that obtains data from the worksheet : Call a Sub procedure named GetInput that obtains the x and y values from Sheet1 and stores the data in a 2D array named xyvalues.
What is the marginal cost of the thirteenth worker : A retailer has to pay $9 per hour to hire thirteen workers. If the retailer only needs to hire twelve workers, a wage rate of $7 per hour is sufficient.
What are the profitmaximizing output and advertising levels : What are the profitmaximizing output and advertising levels? What are the profits?
Write a program that prompts the user to input a number : Write a program that prompts the user to input a different number each time, repetitively (using either integer and/or float numbers).
Relevant demand function : You have 100 identical customers each with the relevant demand function Q=20-P (where Q is the hours per week and P is the per hour fee)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd