You are on page 1of 11

AMA Computer College, Panganiban Dr, Naga, Camarines Sur

Documentary Requirement Presented


to the Senior High School Department for Work Immersion

________________________________

In Partial Fulfillment of the Requirements


for

Information Communication and Technology (ICT) Strand

PROGRAMMING

_________________________________

by

MARY JANE E. TUQUERO

Submitted To

OLC Name

Work Immersion Adviser

March 2021
ACKNOWLEDGEMENT

This letter is to offer my gratitude for accommodating as the skills that acquired

from this work immersion training is extremely valuable. The practical, as well as

technical skills that I have learned will prove to be beneficial for my future endeavors.

I would like also to thank all of you for helping me become familiar with the work

processes. Your patience and wisdom is invaluable to me and I am externally grateful

for this experience

Thanking you again for your constant support guidance.

Sincerely,

ii
MARY JANE E. TUQUERO

TABLE OF CONTENTS

TITLE PAGE i

ACKNOWLEDGMENT ii

TABLE OF CONTENTS iii

I. COMPANY NAME AND BRIEF DESCRIPTION

II. SYSTEM BRIEF DESCRIPTION

III. SCREENSHOTS OF THE SYSTEM

IV. PROGRAM CODE

V. RESUME

iii
I. COMPANY NAME AND BRIEF DESCRIPTION

AMAZON.COM INC
The Amazon.com is a vast Internet-based enterprise that sells book, music, movies, housewares, electronics, toys,
and many other goods, either directly or as the middleman between other retailers and Amazon.com’s million of
consumers. Its Web services business includes renting data storage and computing resources, so-called “cloud
computing” over the internet. Its considerable online presence is such, in 2012, 1 percent of all internet traffics in
North America traveled in and out of Amazon.com data Centre’s.

In 1994 Jeff Bezos, a former Wall Street hedge fund executive incorporated the name primarily because it
began with the first letter of the alphabet and because of its association with the vast South American River. On the
basis of research he had conducted, Bezos conclude that books would be the logical product initially to sell online.
Amazon.com was not the first company to do so: Computer Literacy, a Silicon Valley bookstore, began selling
books from its inventory to its technically astute customers in 1991. However, the promise of Amazon.com was to
deliver any book to any reader anywhere.

Company’s product includes merchandise and content that it purchases for resale from vendors and those
offered by third-party sellers. It also manufactures and sales electronic device.
I’ve been researching your company and the industry. I am very interested in it, and this programming job
matches my skills well. I know that this job is a new position and that you are working on software program for
human resources. Additionally, I found out that your company has been in business for the past 24 years and it have
been consistently profitable. I understand that your work culture is very flexible and lo-key and that your company
places great value on teamwork.

iv
II. SYSTEM BRIEF DESCRIPTION

VBA in EXCEL

VBA ( Visual Basic for Application ) is the programming language of Excel and other
Office program
1.Create a Micro: with Excel VBA you can automated tasks in Excel by writing so called
micros
2.MsgBox: is a dialog box in excel VBA you can use to inform the users of your
program.
3.Workbook and Worksheet Object: learn more about the Workbook and Worksheet
object in Excel VBA
4.Range Object: the Range object, which is the representation of a cell(or cells) on your
worksheet, is the most important object of Excel VBA.
5. Variables: this chapter teaches you how to declare, initialize and display a variable in
Excel VBA.
6 If Then Statement: Use the If Then statement in Excel VBA to execute code lines if a
specific condition is met.
7 Loop: Looping is one of the most powerful programming techniques. A loop in Excel
VBA enables you to loop through a range of cells with just a few codes lines.
8 Macro Errors: This chapter teaches you how to deal with macro errors in Excel.
9 String Manipulation: In this chapter, you'll find the most important functions to
manipulate strings in Excel VBA.
10 Date and Time: Learn how to work with dates and times in Excel VBA.
11 Events: Events are actions performed by users which trigger Excel VBA to execute
code.
12 Array: An array is a group of variables. In Excel VBA, you can refer to a specific
variable (element) of an array by using the array name and the index number.
13 Function and Sub: In Excel VBA, a function can return a value while a sub cannot.
14 Application Object: The mother of all objects is Excel itself. We call it the Application
object. The application object gives access to a lot of Excel related options.
15 ActiveX Controls: Learn how to create ActiveX controls, such as command buttons,
text boxes, list boxes etc.16.Userform: This chapter teaches you how to create an Excel
VBA Userform.
16 Userform: This chapter teaches you how to create an Excel VBA Userform.
III. SCREENSHOTS OF THE SYSTEM

1
SCEENSHOT OF THE SYSTEM

INPUT

OUTPUT

IV. PROGRAM CODE

2
I recently figured out a way to explain my code and meet those goals. As a example a recent questions
asked for CREATING A APPLICATION PROGRAM ordered by how often they show up in an input and
output process.
Open excel, if you create a new file just CTRL + N and go to file, click to save as the browse, enter File
Name then save as type – Excel Macro- Enable Workbook then Save.
If your window don’t have developer, just go to the file and select options then click Customizer Ribbon
and check the developer tab then click Ok.
Next go to developer tab then click Visual Basic when the visual basic open already, Select insert then
click User Form ,if User Form already reflecting on the screen then you going to change the Number
Height and Weight of User Form the height should be 325 and the weight should be 578 then change the
name of User Form into dataEntryForm , then next the caption into Application Form .
So now let’s adding the Label, not 1 label but 7 Label, the first Label change the caption into Lastname,
second Label change the caption into Firstname, third Label change the caption into City, forth Label
change the caption into Country, fifth Label change the caption into the Age, sixth Label change the
caption into Gender and the seventh Label change the caption into Department. And now we need to add
textbox control for Lastname, Firstname, City, Country, and Age the Gender and department will be
combo box. And now the textbox in Lastname you will click the textbox and change the name into
txtLastname, second textbox txtFirstname, third textbox txtCity, forth textbox txtCountry and fifth textbox
txtAge. And for Gender and Department the combo box name will be cmbGender and cmbDepartment.
And now you’ll add three (3) command button for Save, Reset, and Exit. The first command button
change the caption into Save and the name will be cmbSave, second command button change the
caption into Reset and the name will be cmbReset, the last command button change the caption into Exit
and the name will be cmbExit then the Save,Reset and Exit change the back color into gray, CTRL + A
select Font, the font should be Tahoma, font style should be Regular and size 12, then click the below of
Debug( )Run Macro.

 We have successfully and design the Form where we have seven (7) different types.
 So let’s quickly start writing the code

WRITING VBA CODE

Now we need to insert one module, so let’s click on insert menu and click on module so insert the module
we need.
We’re going to back User Form then double click the Exit the Private Sub and End Sub will show up in the
middle of private sub and end sub enter Unload Me then click the below of Debug ( )Run Macro. Try to
click Exit

3
Next the Reset same as exit back to User Form then double click the Reset. Private Sub and End Sub will
show up in the middle of private and end sub enter
Me.txtLastname.Value = ""Me.txtFirstname.Value = "", Me.txtCity.Value = ""
Me.txtCountry.Value = "", Me.txtAge.Value = "", Me.cmbGender.Text = ""
Me.cmbDepartment.Text = "" then click the below of Debug ( )Run Macro. Try to click Reset

Next the Save same as exit and reset back to User Form then double click the Save. Private Sub and End
Sub will show up in the middle of private and end sub enter
'''''' this code is for validation''''''''''
If Me.txtLastname.Value = "" Then
MsgBox "Lastname can't be filled blank", vbCritical
Exit Sub
End If
(then click the below of Debug ( )Run Macro. Try not to enter Lastname “Lastname can’t be filled blank”
will appear
If Me.txtFirstname.Value = "" Then
MsgBox "Please Enter the Firstname", vbCritical
Exit Sub
End If
(then click the below of Debug ( )Run Macro. Try not to enter Firstname “Please Enter the Firstname”
will appear
If Me.txtCity.Value = "" Then
MsgBox "Please Enter tge City", vbCritical
Exit Sub
End If
(then click the below of Debug ( )Run Macro. Try not to enter City “Please Enter the City” will appear
If Me.txtCountry.Value = "" Then
MsgBox "Please Enter thr Country", vbCritical
Exit Sub
End If
(then click the below of Debug ( )Run Macro. Try not to enter Country “Please Enter the Country” will
appear
If Me.txtAge.Value = "" Then
MsgBox "Please input the Age", vbCritical

4
Exit Sub
End If
(then click the below of Debug ( )Run Macro. Try not to enter Age “Please input the Age” will appear
If Me.cmbGender.Value = "" Then
MsgBox "Select the Gender", vbCritical
Exit Sub
End If
(then click the below of Debug ( )Run Macro. Try not to enter Gender “Select the Gender” will appear
If Me.cmbDepartment.Value = "" Then
MsgBox "select the Department", vbCritical
Exit Sub
End If
(then click the below of Debug ( )Run Macro. Try not to Department” select the Department” will
appear
'''''' this code is to save the database into the sheets....'''''
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("database")
Dim n As Long

n = sh.Range("A" & Application.Rows.Count).End(xlUp).Rows = "Lastname"


n = sh.Range("A" & Application.Rows.Count) = 1048567
sh.Unprotect "1234567"
sh.Range("A" & n + 2).Value = txtLastname.Value
sh.Range("B" & n + 2).Value = txtFirstname.Value
sh.Range("C" & n + 2).Value = txtCity.Value
sh.Range("D" & n + 2).Value = txtCountry.Value
sh.Range("E" & n + 2).Value = txtAge.Value
sh.Range("F" & n + 2).Value = cmbGender.Value
sh.Range("G" & n + 2).Value = cmbDepartment.Value

sh.Unprotect "1234567"
Me.txtLastname.Value = ""
Me.txtFirstname.Value = ""
Me.txtCity.Value = ""
Me.txtCountry.Value = ""
Me.txtAge.Value = ""
Me.cmbGender.Text = ""
Me.cmbDepartment.Text = ""
MsgBox "New Applicant Added into the Database"
(then click the below of Debug ( )Run Macro.

Next the Gender and Department same as exit back to User Form then click User form twice

 Change the Click into


ACTIVATE

5
Private Sub and End Sub will show up in the middle of private and end sub enter
With Me.cmbGender
.Clear
.AddItem ""
.AddItem "MALE"
.AddItem "FEMALE”
End With

With Me.cmbDepartment
.Clear
.AddItem ""
.AddItem "HR"
.AddItem "OPERATION"
.AddItem "TRAINING"
.AddItem "QUALITY"
End With
End Sub

V. RESUME

6
7

You might also like