Submit A word processing form Via email

Creating a button to submit a  Word processing Form as an email Attachment

  • From the developer tab select Command Button:
  • Change the button’s name:
    • Right click on the button and select edit:
  • The button text now becomes editable, change it to what best describes the button. In this case, the text was changed to “Save Document and Send via Email”:


(The text was too long, so the button was widened to display all text.)

Set up the button to send the email when clicked:

  • Right Click the button and choose view code:

A visual basic window will popup. This gives a place to put some code that will be executed when the button is clicked


  • Place the following code:


        Options.SendMailAttach = True
        ActiveDocument.SendMail

    Such that it is within the button click sub routine:
  • You may now close the Visual Basic window.
  • Now , when the button is clicked, you computer’s default mail client will be opened with the form attached for sending via email.

Note that the method above does not allow for setting a recipient’s address in the opened mail client.  If you would like to specify a recipient  address and email subject, use the following code within the click subroutine:

Activedocument.HasRoutingSlip = True
With Activedocument.RoutingSlip
.Subject = "New subject goes here"
.AddRecipient "Firstaddress@Mail.com"
.AddRecipient "Secondaddress@Mail.com"
.Delivery = wdAllAtOnce
End With
Activedocument.Route


© 2020 Vedesh Kungebeharry.  All rights reserved.


Mail Merge

A mail merge is the term used when a database of recipients and other fields are placed (or merged) onto a template letter to produce a mass mailing.

Basically , a template document is created using a list of names. e.g:

Template Document (Primary Document)

List of names (Data source or Secondary Document)

Steps to create a mail merge

These steps vary silghtly from version to version of microsoft word, but the principle is the same. In this case, I’m using the version of microsoft word as current as January 2020.

  1. Create a new document
  2. write and format the basic idea for your letter
  3. save your document. This document is your Primary Document (Template).
  4. Click on Mailings -> Select recipients -> Type new list.
  5. Use the “New Entry” button to add new records. Add as many as you need.
  6. Click on “ok”. Save your list. This document is your secondary document (Data Source).
  7. Finally, from the mailings ribbon, click on Finish and merge -> Edit individual documents. This creates a new document from the previous two. This document is your Merged document (Mass mailing).

Thats it!

© 2020  Vedesh Kungebeharry. All rights reserved.

CSEC Video Revision

CSEC INFORMATION TECHNOLOGY – YOUTUBE VIDEO LIST

 These videos were chosen for each topic because they cover the subject matter in a relevant context. They definitely were not created specifically for the CSEC Syllabus, however , they do address the fundamental concepts in real world scenarios.

 OBJECTIVE/TOPICLINK
Explain the concept of Information Technology;Definition and scope Information Technology.https://www.youtube.com/watch?v=Z0A7OMkYQf8
Distinguish among the major types of computer systems in terms of processing speed, storage and portabilityMajor types:(a)Super Computers (for example, Cray).(b)Mainframes (for example,IBM zEnterprise System).(c)Desktop systems.(d)Mobile devices (for example, laptops, notebooks, netbooks, smartphones, tablets and game consoles).(e)Embedded devices (for example,special-purpose systems such as controllers in microwaves, car ignition systems, answering machines).Types of computers:https://www.youtube.com/watch?v=uD0acIhi8xE

What is a super computer:https://www.youtube.com/watch?v=utsi6h7IFPs

Using Supercomputers:https://www.youtube.com/watch?v=yvbSX–LOko


Explain the functions of the major hardware components of a computer system;Major  components:  input, central  processing unit,Primary memory   (RAM and ROM),secondary storage, output.(a)Secondary  storage devices:  hard disk,magnetic   tape, flash   drive, memorycard, and optical disks (CD, DVD and Blu-Ray).(b)Units  of storage:  bits,bytes,  kilobytes,megabytes, gigabytes, terabytesData Processing (IPOS) Cycle:https://www.youtube.com/watch?v=j0XOLp_PbgA
Ram and Rom: https://www.youtube.com/watch?v=XY18amKzOvA
Storage: https://www.youtube.com/watch?v=OsEDJM9NuGA











Units: https://www.youtube.com/watch?v=HRmfXA4EUBs
Explain how the major hardware components of a computer system interrelate;Input processing output storage (IPOS) cycle.Covered in an earlier video:https://www.youtube.com/watch?v=j0XOLp_PbgA
Evaluate the relative merits of cloud storage and local storage;Definition of cloud and local storage.Assessment criteria: capacity, cost, accessibility; security issues.Cloud: https://www.youtube.com/watch?v=gu4FYSFeWqg
Select appropriate input/output devices to meet the needs of specified applications;Associate the following devices with suitable applications:(a)Input:Optical mark reader (OMR), character readers (OCR,MICR),mouse,joystick,barcode reader, document scanner,light-pen, touch terminals,voice response unit, Touch Screens (tablets, point of sale, ATM),keyboard,digital camera,biometric systems, sensors, remote control, sound capture,pointing  devices,webcam.(b)Visual output:Printers (laser, inkjet, dot matrix, thermal, plotters, 3D Printers),microfilm.(c)Audible output: speakers,headphones,earphones.Omr:https://www.youtube.com/watch?v=Yd8PWYCT7w8
OCR : https://www.youtube.com/watch?v=jO-1rztr4O0

Micr : https://www.youtube.com/watch?v=LX-FyRcdUmM
Mouse: https://www.youtube.com/watch?v=eccSwn9QVxo
printers:https://www.youtube.com/watch?v=JEVurb1uVFA

Explain the role of the different types of software in computer operation;System Software: Operating System, Utilities.Application software: general-purpose and special-purpose; integrated package; source: off the shelf, custom-written, and customized. 
Discuss the relative merits of the various types of user interface;Hardware: touch screens, specializedkeyboards.Software: command line, menu-driven, graphical user, touch. 
Evaluate the suitability of a given computer system for a specific purpose;Basic knowledge of system specification needed for purposes such as: to run a video game, web browsing, graphic design, video editing, and desktop publishing. Criteria:(a)Processing speed (CPU type and speed); (b)Memory (RAM);(c)Secondary storage (capacity and speed);(d)Types of software; and,(e)Input/Output devices.https://www.youtube.com/watch?v=eqrJmstbzu4
RAM:https://www.youtube.com/watch?v=PVad0c2cljo

Troubleshoot basic computer hardware problems;Cable problems (for example, loose cables).Monitor problems (for example, improperly adjusted monitor controls).Printer problems (for example, changing printer cartridges).Battery problems (for example, loose or dead battery). 
Distinguish between data and information;Data as raw unprocessed facts;information as processed data.Sources of data and information (people, places and things).Document types: turnaround document, human-readable and machine-readable forms; hard copy, and soft copy.Data and information https://www.youtube.com/watch?v=sIjSY05JE9Q
Evaluate the reliability of information obtained from online sources;Evaluation of information retrieved electronically for authenticity, currency, relevance, and bias.https://www.youtube.com/watch?v=EyMT08mD7Ds
Differentiate between validation and verification of data;Difference between validation and verification. 
Identify appropriate validation and verification checks given a particular scenario;Methods of validation: range check,reasonableness checks, data type checks, consistency checks, presence, format and length. 
Select appropriate file organisation for particular application.File access methods: sequential, serial, direct and random.Application areas: archiving, payroll file, real time systems. 
Distinguish among types of networks;Types of networks (local area network, metropolitan area network, wide area network, mobile network).(a) Concept of mobile network as radio- based common carrier.(b) Overview of mobile networks: from 2G to current. (Knowledge of the inner workings of mobile systems is NOT required)Wireless network technologies (for example, Bluetooth, Wi-Fi, hotspot).Level of privacy (intranet, extranet, Internet).Types: https://www.youtube.com/watch?v=4_zSIXb7tLQ
Mobile:https://www.youtube.com/watch?v=1JZG9x_VOwA





Explain the functions of the basic components of a network;Basic components and functions:(a) Transmission media:(i) Wired: twisted pair, coaxial, fibre; and,(ii) Wireless: infrared, microwave, satellite.(b) Switch, router, modem. (c) Network interface card/network adapter.Hub/switch/router https://www.youtube.com/watch?v=1z0ULvg_pW8
Topologies : https://www.youtube.com/watch?v=zbqrNg4C98U
Ethernet:https://www.youtube.com/watch?v=_NX99ad2FUA
Cable: https://www.youtube.com/watch?v=qQYiwmamq38
Wireless:https://www.youtube.com/watch?v=OxiY4yf6GGg



Assess the importance of mobile communication technologies as a component of modern communication networks;Suitability of mobile networks to various applications (for example, education, commerce, and journalism). 
Explain the interrelationship among keyWeb technology concepts.World Wide WebHypertext Markup Language.Hypertext Transfer Protocol.Hyperlinks.Web Server.Web Page.File Transfer Protocol.Web Browser.Uniform Resource Locator.Upload and download. www:https://www.youtube.com/watch?v=J8hzJxb0rpc
http:https://www.youtube.com/watch?v=hExRDVZHhig


© 2019  Vedesh Kungebeharry. All rights reserved.

Spreadsheet Functions

Functions

A function is a predefined formula provided by a spreadsheet application.

Functions are written in the following format:

                =FunctionName(parameter1, parameter2, …, parameterN) 

e.g

=sum(e3, d4, r5),

=max(a5,a27,b44)

=SUM(D3,D4,D5,F3:F4)

a function with a single parameter is shown below:

                =FunctionName(parameter)

e.g.

=SUM(F3:F4)  (note this is 1 parameter, a range)

=ABS(-44)

Note that a function’s  actions can be accomplished with a formula:

e.g =SUM(D3:F3) becomes =D3+E3+F3

Absolute addressing – prevents a cell’s row number or column letter from being updated when a formula is copied to another cell.

e.g          $C4        – prevents the column letter from being updated

                C$4        – prevents the Row number from being updated

                $C$4      – prevents both column letter and row number from being updated.

Secret tip!!!!!!!!  – use F4 to set a cell’s address to absolute addressing.

Class Demo

Download the excel file here:

https://drive.google.com/file/d/1NNSBoalQj278kbyctaYaaw5M1OII8tto/view?usp=sharing

StudentRoll NoMathFrenchSpanishTotalsAverageBonus ScorePass/Fail?
Jim1105520710Work harder
Mary2752051003350Good Job
Tobias Reiper3125 17913Work harder
Mario4135523812Work harder
Bonus50%
Student Number4
  
Max Average33
Min Average7
  
# Marks < 303
Number of spanish marks entered3
Number of spanish marks Missing1

Sheet with formulas

StudentRoll NoMathFrenchSpanishTotalsAverageBonus ScorePass/Fail?
Jim11055=SUM(C3:E3)=AVERAGE(C3:E3)=(1+$B$10)*G3=IF(G3<30, “Work harder”, “Good Job”)
Mary275205=SUM(C4:E4)=AVERAGE(C4:E4)=(1+$B$10)*G4=IF(G4<30, “Work harder”, “Good Job”)
Tobias Reiper3125 =SUM(C5:E5)=AVERAGE(C5:E5)=(1+$B$10)*G5=IF(G5<30, “Work harder”, “Good Job”)
Mario41355=SUM(C6:E6)=AVERAGE(C6:E6)=(1+$B$10)*G6=IF(G6<30, “Work harder”, “Good Job”)
Bonus0.5
Student Number=COUNT(B3:B6)
  
Max Average=MAX(G3:G6)
Min Average=MIN(G3:G6)
  
# Marks < 30=COUNTIF(G3:G6, “<30”)
Number of spanish marks entered=COUNTA(E3:E6)
Number of spanish marks Missing=COUNTBLANK(E3:E6)

Homework:

Give examples of the following functions:

Sum, average, max, min , count, counta, countif , date , if 

© 2019  Vedesh Kungebeharry. All rights reserved. 

Pivot tables. [Size – 9 mb]

This post contains a gif 
image that is 
approximately 
9 MB in size.

Introduction…

You’re going to wish that your teachers started excel with a pivot table instead of teaching you formulas and filters, some of which can be complex to understand and difficult to put into practice. I guess teachers know that our absolute addressing lab class would be interrupted with , “You should’ve just used a pivot table!”

What are they and what do they do?

Pivot tables are new tables that are created from an existing table that contain custom summary features for your original table’s data.

For example, consider the following data:

Employee #NameRegion Sales Commission For January# Items Sold
1Roly BasimaAmericas18501
2Louna RebaAfrica28307
3Cole KhayriyyaCaribbean10505
4Khalida FuadCaribbean22807
5Perlie ShanelleAsia15103
6 Briscoe Benjamin Asia16001
7Misha StreetAmericas46008
8Janice KemplinCaribbean18302
9Aracelis OylerAfrica29304
10Alvina CoppolaAfrica17707

Figure 1 – Raw data (note that all data was randomly generated.)

You could quickly arrive at a summary view:

Pivot table showing a summary of our data.
Pivot table showing a summary of our data.

This takes about 20 seconds and requires no knowledge of formulas.

The proof is shown in the gif below:

Inserting a Pivot Table in less than 20 seconds.

Creating a pivot table from our data

  1. Copy and paste the data from the table above (Figure 1) into a new excel workbook. The result is shown below:

2. Select all the data that will be used to create your pivot table:

3. Click on the insert tab on the ribbon, and choose Recommended Pivot Tables :

4. Choose a suggested pivot table that you’d like to insert. In this example, we chose the third one. Click “Ok” to insert the table.

5. After Clicking on “Ok” (from step 4), Excel inserts your pivot table on a new sheet. See the result below:

Resulting pivot table

Making sense of your pivot table by manipulating it’s rows, columns and values.

A demonstration of how to manipulate the pivot table in the video below:

Using a pivot table effectively.

Download the finished tutorial from the video here:

Here is a link to the Pivot table tutorials provided by Microsoft office:

https://drive.google.com/drive/folders/1AUjWnMFhnetVlmyztoESdQI4_L–y2q6

A pivot table’s purpose

A pivot table can help you to make strategic decisions based on your operational data. In our example above, we look at some sale information for the month of January (Operational Data) and create a summary (Strategic Data) to make strategic decisions.

Strategic decisions are made by the leaders of your organization (by you if you’re the leader) and affects how you approach your next set of goals.

From our example, we see that the largest commissions are paid to our sales people in the African continent who also sold the most items in January. Using that information, we may want to communicate with our sales force in Africa to determine the causes and try to apply their methods fro success in other regions.

Our assumption becomes, “Our African Sales force seems to be motivated and practice good methods in selling our products. We must investigate if this is true by comparing their methods to other regions.”

From the assumption above, we can now make our first strategic decision:

  1. Monitor sales in Africa to see if the trend continues

If we find our assumption to be true we can now make the following strategic decisions and plan:

2. Learn the best practices from our African Sales Force

3. Start a training program for our entire company scheduled to run in the month of July .

In class exercise

Describe any other scenario that can result after analyzing the pivot table from our example.

References

https://scraperwiki.com/2014/07/the-history-of-pivot-table/

Random name generators for names used in example:

https://www.behindthename.com/random/

http://listofrandomnames.com/index.cfm?generated

© 2019  Vedesh Kungebeharry. All rights reserved. 

Implementing Incomplete functions – Programming practise (Part 3)

Download this file: ProgrammingPractise 3 – Commissions and Rewards.fprg

Be sure to read the comments at the start of each function to get an idea of what needs to be implemented. I’ll be happy to answer any questions that you have in class.

See this post if for some detail on how to use the above file: https://islandclass.wordpress.com/2019/05/16/implementing-incomplete-functions-programming-practise/

© 2019  Vedesh Kungebeharry. All rights reserved.  

Implementing Incomplete functions – Programming practise (part 1 and part 2)

Here’s the flowgorithm files that you can use to practise programming:

ProgrammingPractise 1 – Demonstration and Tutorial.fprg

ProgrammingPractise 2 – Circles.fprg

Here’s a video from a previous class demonstrating how to use the practise files above:

Here’s the flowgorithm file which demonstrates the “functions” GreetUser() and Sum() :

Function_Demonstration.fprg

and, as a bonus, the pascal implementation of both functions:

Function_Demonstration.pas

© 2019  Vedesh Kungebeharry. All rights reserved.