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

  Unix systems administration

Unix Systems Administration

  Compare each charge account number from the file

Compare each charge account number from the file, possible valid numbers, to see if it is listed as a valid number in the file valid_numbers.txt.

  Discuss the ajax model in relation to good software design

Discuss the AJAX model in relation to good software design, and the essence of the quoted question. Will AJAX further promote the development of Web based software, or is it just another fad?

  Explain joint application development

Explain JAD (Joint Application Development) and RAD (Rapid Application Development) in detail

  Write a program that design a class named month

Design a class named Month . The class should have the following private members: name A string object that holds the name of a month, such as "January," "February," etc.

  Create memo to grace to outline purposes of organization

Create a memo to Grace in which you outline purposes of organization and costs and benefits of becoming a member.

  Write a program that plays tic-tac-toe

Write a program that plays tic-tac-toe. The tic-tac-toe game is played on a 3 × 3 grid. The game is played by two players, who take turns. The first player marks moves with a circle, the second with a cross.

  Write program to read two-digit hexadecimal sequences

Write down the program which reads 2-digit hexadecimal sequences from the text file and shows their decimal equivalents.

  Describe function work for array-based stack

Return number of items in stack. Describe how this function would work for array-based stack and what would change for pointer-based stack.

  Program to calculate monthly gross pay for super supermarket

Owners of Super Supermarket would like to have program which calculates monthly gross pay of their employees. Input for this program is employee ID number, hourly rate of pay.

  Write the function array_dup

Write the function array_dup(n, obj) that returns an array containing n copies of obj - Write a function count_occurrences(a, obj) that counts the number of items in array a that are equal to obj.

  You are consulting for an organization that has unix linux

question 1 the small company where you work needs to implement a second server for its accounting systems but does not

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