(Early note: the final examination may include material from the first part 
of the term but there's a heavy focus on material on the topics covered after 
the midterm, databases onwards).
	
		| VBA library documentation that will get for the final exam (not all 
		library functions may have been covered during a particular semester) | 
	
		| 
			Accessing the following VBA objects: | 
	
		|  | 
			Application: 
			the MS-Office program runningActiveDocument: 
			current MS-Word documentSelection: 
			currently selected text | 
	
		| 
			Useful methods and attributes of the 
			Application object | 
	
		|  | 
			Application.Windows.Count: 
			number of open Word windowsApplication.CapsLock: 
			a Boolean to indicate whether caps lock is turned on or off | 
	
		| 
			Useful methods and attributes of the 
			ActiveDocument object | 
	
		|  | 
			ActiveDocument.CountNumberedItems: 
			total number of bulleted and numbered itemsActiveDocument.Save: 
			saves the current documentActiveDocument.SaveAs("<filename>"): 
			save and rename documentActiveDocument.Select: 
			make the entire document the current selectionActiveDocument.ActiveWindow.Caption = "<Caption>": 
			change caption title in the Word windowActiveDocument.Close (<wdPromptToSaveChanges> 
			or <wdDoNotSaveChanges> or <wdSaveChanges>): 
			close current Word window and apply the effect of specified constantActiveDocument.Checkspelling: 
			run spell checkerActiveDocument.DeleteAllComments: 
			delete all comments from the active documentActiveDocument.Printout: 
			prints the active documentActiveDocument.SendMail: 
			sends email with the active document as an attachmentActiveDocument.Words.Count: 
			number of words in the MS-Word documentActiveDocument.Words.Comments.Count: 
			number of annotation comments in the MS-Word documentActiveDocument.Select: 
			select all the text in the active Word documentActiveDocument.Application: 
			the application associated with the documentActiveDocument.Name: 
			name of the active documentActiveDocument.Path: 
			save path of the active documentActiveDocument.FullName: 
			name & save path of the active documentActiveDocument.HasPassword: 
			a Boolean to indicate if the active document has been saved since 
			last changedActiveDocument.password = "<Password>" 
			: sets the password for the 
			active document to the value specifiedActiveDocument.SpellingChecked: 
			a Boolean to indicate if the active document has been spell checked 
			since last changedActiveDocument.Saved: 
			a Boolean to indicate if the active document has been saved since 
			last changedActiveDocument.SpellingErrors.Count: 
			the number of spelling mistakes in the active documentActiveDocument.InlineShapes.Count: 
			number of inserted inline shapes in the documentActiveDocument.Shapes.Count: number 
			of primitive shapes in the documentActiveDocument.Tables(i)
				Allows access to one table from the collection of tables.'i' 
			is a positive integer (i.e. >= 1)ActiveDocument.Tables.Count: number 
			of tables in the active documentActiveDocument.Tables(i).Sort(<Boolean>):
			'i' 
			is a positive integer, sorts the table specified by 'i' 
			in the active document, the Boolean specifies if it is true that the 
			tables include headers ActiveDocument.InlineShapes(i).height 
			: height of inline shape # 'i' ActiveDocument.InlineShapes(i).width 
			: width of inline shape # 'i' ActiveDocument.Shapes(1).Delete : 
			delete shape # 'i' ActiveDocument.Shapes(i).height : 
			height of shape # 'i' ActiveDocument.Shapes(i).width : 
			width of shape # 'i' ActiveDocument.Shapes(6).Fill.ForeColor 
			= <Color: vbBlack, vbRed, vbGreen, vbYellow, vbRed, vbBlue, vbWhite>: 
			sets Shape  # 'i' to the specified 
			color | 
	
		| 
			ActiveDocument: 
			find and replace textActiveDocument.Content.Find.Execute 
			FindText:="<text>", ReplaceWith:="<text>", _
 Replace:= <wdReplaceAll>, 
			MatchCase:= <Boolean>
 | 
	
		| 
			ActiveDocument: 
			find and replace font effects 
			(turn on/off)With ActiveDocument.Content.Find
 .Font.<Font effect> = <Boolean>
 With .Replacement
 .Font.<Font effect> = <Boolean>
 End With
 .Execute Replace:=wdReplaceAll
 End With
 | 
	
		| 
			ActiveDocument: 
			find and replace text styles in 
			a documentWith 
			ActiveDocument.Content.Find
 .Style = "<Search style>"
 With .Replacement
 .Style = "<Replacement style>"
 End With
 .Execute Replace:=wdReplaceAll
 End With
 | 
	
		| 
			Counting the number of occurrences
			of a particular word in a document:With ActiveDocument.Content.Find
 Do While .Execute(FindText:=<"searchWord">, 
			Forward:=True, _
 MatchWholeWord:=True) = True
 <Do something when each 
			instance of search word is found>
 Loop
 End With
 
 | 
	
		| 
			Useful methods and attributes of the 
			Selection object | 
	
		|  | 
			Selection.Expand: 
			expand selection to next grouping size of textSelection.Copy: 
			copy selected textSelection.MoveLeft: 
			move cursor leftSelection.MoveRight: 
			move cursor rightSelection.ParagraphFormat.Alignment = <wdAlignParagraphCenter 
			or wdAlignParagraphLeft or wdAlignParagraphRight>: to center, left 
			or right align a paragraph (respectively)Selection.ParagraphFormat.SpaceAfter = <# 
			points e.g. 0, 3, 6 etc.): Adds extra 
			spacing to the end of paragraph Selection.ParagraphFormat.LeftIndent = 
			InchesToPoints(# inches): # inches for 
			left indenting of a paragraphSelection.ParagraphFormat.RightIndent = 
			InchesToPoints(# inches): # inches for 
			right indenting of a paragraphSelection.PasteAndFormat (<wdFormatOriginalFormatting 
			or wdFormatPlainText>): 
			copied text is pasted with the specified formattingSelection.Font.Name = <Font name> 
			: change font typeSelection.Font.Size = <Size> 
			: change font sizeSelection.Font.Bold = <Boolean> 
			: turn bolding on or off Selection.Font.Bold = wdToggle: 
			toggle boldingSelection.Font.Italic = <Boolean> 
			: turn italics on or off Selection.Font.Italic = wdToggle: 
			toggle italicsSelection.Font.Underline = <Boolean> 
			: turn underlining on or offSelection.HomeKey Unit:= <wdStory>: 
			move selection to the top of the documentSelection.Type : 
			returns information about the type of information selected (if any: 
			<wdSelectionIP - none> <wdSelectionNormal 
			- text selection> <wdSelectionShape - graphical shape 
			selected> )Selection.text = <"Selected text"> 
			: writes the selected text to 
			the document by setting the text attribute directlySelection.TypeText(<"Selected text">) 
			: writes the selected text to 
			the document through the method 
			TypeText() | 
	
		| 
			Common and useful collections | 
	
		|  | 
			InlineShapes(): 
			includes all the external images inserted into a Word documentLists(): all the lists in a Word 
			documentShapes(): all the primitive shapes in a Word 
			documentTables(): all the tables in a Word 
			documentDocuments(): the collection of 
			documents currently opened | 
	
		| 
			Useful methods and attributes of the 
			Documents collection | 
	
		|  | 
			Documents.Item(i): 
		
			Allows access to one document from the collection of documents.'i' 
			is a positive integer (i.e. >= 1)Documents.close: closes all of the 
			open Word documentsDocuments.count: returns a positive 
			integer that is equal to the number of documents currently opened.Documents(i).Save: save the 
			document accessed through the indexDocuments(i).SaveAs (<"name">): save the 
			document (accessed through the index) under another name Documents(i).PrintOut: print the 
			document accessed through the index Documents.Open (<"location and name">): 
			opens the document with the specified location and name and adds it 
			to the documents collection | 
	
		|  | 
	
		|  | 
			Len(<string>): this function 
			returns the number of characters in the specified stringDir("<Path to a folder>") : 
			returns the name of a document under the specified pathDir("<Path to a document>") : 
			returns the name of the document under the specified pathDir : after the path to a folder 
			has been specified with a previous call to Dir, 
			this call returns the name of the next document in the specified 
			folderCreateObject("<Name of MS-Office 
			application>"): starts up the Office application 
			specified in the brackets.<Name of an excel 
			spreadsheet variable>.workbooks.Open("<Path 
			and name of an Excel spreadsheet/worksheet>"): 
			opens up the Excel spreadsheet at the specified location.<Name of an excel 
			spreadsheet variable>.Range("<Cell 
			in a spreadsheet>").Value:
			
			Returns as a string the contents of the cell of spreadsheet referred 
			to by the spreadsheet variable. | 
	
		| 
			
			
			Excel methods (accessible via VBA run through Word) | 
	
		|  | 
			<reference to an Excel window>.Visible = <Boolean> 
			: Makes an Excel window visible or not visible<reference to an Excel window>.workbooks.open("<Path to 
			an Excel document">) :Opens the Excel document named 
			under the specified path and returns a reference to that document.<reference 
			to an Excel window>.range("<Cell address>").Value : 
			returns the contents of the specified cell  | 
	
As mentioned  VBA documentation WILL NOT be provided for the 
following (you're expected to know how to apply them without documentation)
(This is only a quick overview, you should look to the course notes for 
details)
You could see exam questions that involve any of the above questions in the 
form of VBA code writing or a program code trace.
	
		| 
			
			
			Basic mathematical operators: assignment (=), 
			addition (+), 
			subtraction (-), 
			multiplication(*), 
			division  (/), 
			exponnent(^) | 
	
		| 
			
			
			Basic statistical formulas | 
	
		|   | 
			
			sum (<start 
			cell> : <end cell>) 
			average 
			(<start cell> : <end cell>)
			min (<start 
			cell> : <end cell>)
			max (<start 
			cell> : <end cell>) | 
	
		| 
			
			
			Counting functions (an alternative to entering the start: cell range 
			is to manually enter the data sequence as the function argument). | 
	
		|   | 
			
			count (<start 
			cell> : <end cell>) 
			counta 
			(<start cell> : <end cell>)
			countblank 
			(<start cell> : <end cell>)   | 
	
		| 
			
			
			String (and related utility) functions (an alternative to entering 
			the cell  is to manually enter a string as the function argument). | 
	
		|   | 
			
			left (<cell>, 
			<number of characters>)
			right 
			(<cell>, <number of characters>)
			mid (<cell>, 
			<start position>, <number of characters>)
			find(<find 
			text>, <within text>, [<start position>])
			
			concatenate(<cell1>, cell2, cell3....celln) | 
	
		|  | 
	
		|   |  | 
	
		|  | 
	
		| 
		  | 
			
			=if (<condition 
			to check>,  <return value: condition true>,  <return value: 
			condition false>) | 
	
		| 
			
			
			Logical comparators (relational operators): less than (<), 
			less than equal to (<=), 
			greater than 
			(>), 
			greater than equal to (>=), 
			equal to (=), 
			not equal to (<>) | 
	
		|  | 
	
		| 
		  | 
			
			LOOKUP(<Lookup 
			value>, <Lookup column (vector) Start : End>, <result 
			column (vector) Start : End>)
			VLOOKUP(<Lookup 
			value>, <Lookup table Start : End>, <Lookup table Column specifying 
			the return value>, [<Exact match required?>]) | 
	
		| 
			
			
			Conditional counting functions (an alternative to entering the 
			start:cell range is to manually enter the data sequence as the 
			function argument). | 
	
		| 
		  | 
			
			countif  (<start 
			cell> : <end cell>, <condition>) 
			countifs (<start 
			cell> : <end cell>, <condition>,  (<start cell> 
			: <end cell>, <condition>) )
			 | 
	
		| 
			Characters that 
			define input masks | 
	
		|   | 
			Numbers:
			0, 9 (mandatory, optional)Alphabetic 
			letters: L, ? (mandatory, 
			optional)Alpha or digit:
			A, a (mandatory, optional)Digit, space, 
			plus or minus sign: # 
			(default is a space)
			Changing case: 
			>,< 
			(upper, lower) | 
	
		| 
			Specifying 
			validation rules (Strings): Like "<Format for String>" | 
	
		|   | 
			Formats: Numbers 
			[0-9], Alphabetic [A-Z], 
			#, Wildcard *, Single 
			character wild card ? |