Create a Microsoft Word macro using VBA

Assignment Help Programming Languages
Reference no: EM132127398

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will allow a user to quickly scan across the page - the highlighting acting as a ruler, if you will.)

Prompt the user for the number of lines to highlight and then use some shading (perhaps Yellow, or Gray 10%) to highlight every third line [lines 1, 4, 7, etc]

Prompt the user whether the highlighting should start from the beginning of the document (first line) or from the current cursor position.

Advanced students: Prompt the user for the number of lines to highlight and present the user with a choice of 3 different highlighting options (3 colors, perhaps). Also, ensure that there are not two non-highlighted lines at the end. A single non-highlighted line at the end is fine; however, two are not. Therefore, you may need to provide highlighting on the last line also.

If during your class introduction you mentioned having used VB, then you are considered an "advanced student" for this assignment :-) Consult chapter 13 in the Coding text for information on VBScript and chapter 4 for information on VB.Net. Recall the class discussion on control structures for some insight. Use the help feature of Microsoft Word along with any online resources to aid you in solving this problem. You will have to a problem-solver and locate resources to aid you in completing this assignment.

Hint: you can begin recording a macro and enter commands manually to see what type of VBA instructions will be produced. Be sure to add comments to the macro code. Save your macro with the name highlight within a document named CSC505unit3C.

Reference no: EM132127398

Questions Cloud

Perform a role play on what happens on the first day : BUS1003/BUS105 Business Communication and Academic Writing - Describe at least 1 Hofstede's cultural dimension. team play will run for between 8 and 15 minutes
Called standard normal distribution : If a normal random variable has a mean = _____ and a standard deviation = _____, it is called a standard normal distribution.
The three major activities in process management : the three major activities in process management that focuses on maintaining consistency in output by assessing performance and taking corrective action
Who is most commonly diagnosed : As you are probably aware, the rate of diagnosis of Autism and related disorders is increasing significantly. Watch the video above and do an internet search.
Create a Microsoft Word macro using VBA : Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text
What you have constructed and what your classmates have : Describe the symptoms of pedophilic disorder and explain why pedophiles are so dangerous. Some states require that pedophiles remain incarcerated.
Four elements of deming system of profound knowledge : Which of the following is one of the four elements of Deming’s system of profound knowledge?
Does maryam demonstrate diagnostic criteria : Review the Trauma Case Study. Does Maryam demonstrate diagnostic criteria for Posttraumatic Stress Disorder or Acute Stress Disorder? Justify your answer.
The customer service provided by service organizations : Which of the following is a negative impact of information technology on the customer service provided by service organizations?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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