Create a list of schools and display in a message box

Assignment Help Other Subject
Reference no: EM132375453

Assignment -

This assignment needs to be completed in VBA within the macro spreadsheet.

Objective:

  • Use a For Each loop to create a list of schools and display in a message box.
  • Use nested For Loops to create a list of all possible pairs of comparisons for a given number of options.

Instructions: This will be all new code.

Part A: School List

Create a range variable (named rngIndex) that represents the list of numbers in column A of the Data sheet.

SET that variable to cells A2 to A21 of the Data sheet but DO NOT hardcode the reference.

Use a combination of Offset and End(xlDown) to determine the current size of the range.

Loop through each cell in rngIndex and create a string variable (strList) that shows the AlphaOrder, Name and Mascot where mascot is in uppercase. (Use UCASE function.)

Display that string in a message box as in the example.

Attach the code to this button to execute.

Lines of code needed: about 10.

Part B: Nested Loops to create pair sets to compare

When comparing every option to every other option, we can determine the number of options with the formula - pairs = (options - 1) * (options) / 2

Prompt the user to enter the number of options, then display in a messagebox the number of pairs to be created.

Pass that value to a new sub that handles the next steps.

Use a pair of nested loops to create every possible pair without repeating any pairs. Print each pair to the immediate window using Debug.Print. (assuming user entered 6 as in the example screen shots, output would resemble)

Attach code to the Make Pairs button.

Attachment:- Assignment File.rar

Reference no: EM132375453

Questions Cloud

What are the characteristics of catastrophe : What are the characteristics of Catastrophe (CAT) bonds and the market review?
What is the irr for project : Your firm is contemplating the purchase of a new $590,000 computer-based order entry system. The system will be depreciated straight-line to zero
Applying capital to investments with long-term benefits : By applying capital to investments with long-term benefits, the company is attempting to produce value.
Critical incident response policy in the united states : Read Critical Incident Response Policy in the United States, Do the policies put in place address the recommendations of the 9/11 Commission report?
Create a list of schools and display in a message box : Use a For Each loop to create a list of schools and display in a message box. Use nested For Loops to create a list of all possible pairs of comparisons
Economic models of regulation and compliance : 34461 - Risk, Regulation and Compliance - Level 7 - University of Salford - describe Credit Rating Agencies and major operations within financial system
The person responsible for communicating public policy : Discuss the implications of these advantages and disadvantages to the person responsible for communicating public policy.
What will be the usd-eur exchange rate : You forecast the USD is going to appreciate by 10% relative to the EUR in one month. What will be the USD/EUR exchange rate in a month.
Monthly payments from the annuity contract : Julie Maragon has just turned 85. Due to historically low returns in the government bond market, Ms. Maragon is planning to purchase a life-annuity

Reviews

len2375453

9/24/2019 1:59:20 AM

Attached you will find the spreadsheet. In the tab labeled "instructions" you will find the instructions for this assignment. This assignment needs to be completed in VBA within the macro spreadsheet. All Assignments: Enter your name at the top of the instructions sheet. Add comments to explain major parts of code. Assign macros to buttons (if not done already). If unable to fix crashing code, add comment at spot of crash explaining what you've attempted to do to fix it and ideas on what could be wrong. Rename the file to include last name (Smith_M1_Ex1.xlsm) and submit. Check the boxes to be sure you completed all requirements.

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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