Macro Function

Programming visual basic can be done easily, the installation program without any visual basic, visual basic can be found in our daily life, which is the default program from Microsoft Office. To open a page visual basic, open a Microsoft Office program and click Tools and then highlight Macro with your mouse and click Macros. Macro window will appear. Fill in the name of any macro then click create.

Macro is a series of commands that you can record and then run the Office programs, so that he repeated at the time. So, if you format text as Arial 12pt bold print and green, you can create a macro untukmelakukan task in one step of selecting the font, ukurang, color, and effects. A simple example: macro can be used in Word to format a table or in the Excel data to make certain calculations. If necessary, you can create a more complex.

Have you heard the term macro virus? No virus-like viruses in general circulation at this time, macro virus runs only on Microsoft Office documents. This virus is only a visual basic script programming that is embedded in office documents such as word document (*. doc), and on the other office documents.
Initially intended to be Macro office documents can be more interactive and allows Customize that are not limited to Microsoft Office users, but on the development of the next, this script is often misused to create a virus for the purpose of a more useful.

So starting from the version of Microsoft Office 2000 macro made outside the computer that is blocked by default unless the user to allow macros to run, as the user is always reminded that a document containing a macro virus contains a possibility. Therefore it is why we rarely find a macro virus spread.

But no one if we learn a little about this macro. Because in addition to viruses, macro is basically intended to make Microsoft Office users more comfortable. Visual Basic programming language allows programmers to access all the computer from which light up the most dangerous, including damage to the system.
A simple example script macros

Note the screenshot above. Click twice on the ThisDocument normal it will appear a text editor. Then copy and paste the following script:

Private Sub Document_Close ()
MsgBox "Do not forget to turn off the monitor after the computer"
End Sub

Now close the Macro and close Office Word. So each time you close the Microsoft Word application will show a message dialog titled "Do not forget to turn off the monitor after the computer". If you want to display a message when a document file using the following script:

Private Sub Document_Open ()
MsgBox "Remember to save the file after editing"
End Sub

So when will also create a new document

Private Sub Document_New ()
MsgBox "Start with basmalah read before starting a job"
End Sub

If you want to remove the above macro simply delete the entire script is over. Congratulations Testing ..

0 comments: