Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Place a control button in the worksheet that calls a VBA macro that processes the following sales data ( your final code should work with

Place a control button in the worksheet that calls a VBA macro that processes the following
sales data (your final code should work with data sheets that have more or fewer regions and
more or fewer months of data). Write your code so that it runs on the active worksheet.
Where "Month" is in cell A3 and in cell A1 is your name. Using cell A3 as an anchor cell, code
the following tasks in VB (Do NOT use For Next Loops):
Find out the number of regions with data
Find out the number of months with data
Format the header (Region 1,..., Region 4) so that they are horizontally centered, have
green background, bold, italic and black text.
Add the word "Total" two columns after the last region in the data and on the same row
of the header row. Center the text horizontally and make the background yellow, bold,
italic and blue color.
Using R1C1 notation place a formulas under the header "Total" with the sum of the sales
in the regions for each of the months in the data.
Format the numbers for the total using the NumberFormat ="0" property for a range.
Use an input box to ask for the number of months in the moving average of total sales.
Get the response to the input box in a string variable and check for a numeric value. If it
is not a numeric value, show a message box and stop the program.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions