Create a microsoft word macro using vba

Assignment Help Visual Basic Programming
Reference no: EM131288292

Topic: Microsoft Word macro using VBA (Visual Basic for Applications)

Detailed 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.

Attachment:- help.rar

Reference no: EM131288292

Questions Cloud

Identify one theorist whose work regarding society you found : From the list provided, identify one theorist whose work regarding society you found most interesting. Using the knowledge you have gained thus far in this course.
Prepare a report on health administration : Prepare a report on Health Administration.Your decision to either keep the patient in hospital or discharge the patient. Provide a rationale for your decision.
Determining the adequate sleep : When men or women sleep 6 hours or less per night, they are not as healthy as when they sleep 7 or 8 hours.  Those who sleep 9 hours or more are slightly below average in health.  Thus, 7 to 8 hours of sleep are most favorable.  As you might expec..
Describe distinct phases of creating a backward design model : Describe the three distinct phases of creating a backward design model. Explain which of these steps you anticipate will be the most difficult. Is there anything you would change about the design process?
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 in a document. (Imagine creating highlighting that will allow a user to quickly scan across th..
Determine the unique subgame perfect equilibrium : Determine the unique subgame perfect equilibrium and describe what offer, if any is accepted and in which period.-
Explain what are some of significant points used in article : What are some of the significant points used in the article to support the premise? Why are these points significant to the way communication affects strategic planning?
Create a project cost estimate and baseline budget : HTC has contracted you to build out a state-of-the-art multimedia classroom for HTC.  Assume the space is already built (i.e. you don't need to worry about any construction costs, except where those might be related to pulling cables and other suc..
Should you make the first offer : Suppose that you are attempting to buy a house, and you are bargaining with the current owner over the price. - Should you make the first offer or let the current owner make the first offer? Why?

Reviews

len1288292

11/24/2016 2:29:11 AM

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

Write a Review

Visual Basic Programming Questions & Answers

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms". This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the e..

  Visual basic programming discussion

The use of decision logic is one of the major concepts of computer programming. The decision takes your code from being sequential to one that can take various options based on the different conditions. Determine the method of coding that you would u..

  Ticketseller

Use Visual basic 2010Visual Basic,  TicketSeller. This assignment will contain two (2) Parts: Event Planning Document and Coding phase. You must submit both parts as separate files for the completion of this assignment. Remember, you are only to de..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

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