Professional Documents
Culture Documents
Lab Material ch4
Lab Material ch4
(IENG419)
Fall:2017-2018
Research Assistants:
Ehsan Shakeri, Mohammad Yazdi& Negar Akbarzadeh
Chapter 4
Formatting & Reporting
Formatting
In MSP we can make a specified Gantt Chart view by changing
in the color and elements of the chart.
In order to these changes we should define a copy from
original Gantt Chart and make some changes in it.
Formatting
1
3
2 4
Select
Formatting
1 5
2 3
4
Formatting
Now, from More views we apply the new Gantt Chart to our
project.
2
Formatting
Now, we are using the new Gantt Chart and we can make
some changes in it by following these steps
2
3
Formatting
In this window, you can select your favorite color and style for
the new Gantt Chart
MSP has some tools to help us for taking some reports from
projects.
By default, these reports are visible from screen and also they
are printable.
5
Select one of them
3 4
Select one of these
report types
Reporting
What Is a Macro?
A macro is a name used for a computer program which is used to execute a series
of instructions. Usually a macro is utilized for something that is repetitive in
nature.
Examples of where a macro can be used
complex calculations that need to be repeated for varied sets of inputs,
a particular action being performed over and over again on different input, files,
etc.
Macros, if effectively used, can significantly reduce the amount of time spent on
performing menial tasks and thereby improve one's productivity.
Resource: http://www.brighthubpm.com
How to Create a Macro in MS Project
The following steps describe how to create a macro in Microsoft
Project.
Note: While certain people choose to write their own macros,
this requires certain initial expertise. Hence the best approach
while starting with macros is to play around with the Record
feature.
•Navigate to the Camera Tool on the toolbar. Select the GIF option, give a filename
and click on OK
Step 5: Stopping Macro Recording
•Click on Tools --> Macro --> Stop Recorder.
•Voila! The macro is ready. In order to re-run the macro on other project files, perform
the following steps.
Running the Macro
Step 1: Open a New Project File
•Now, open a new project file upon which you would like to run the macro.
Step 2: Running the Macro
•Navigate to Tools --> Macro --> Macros (or press Alt+F8).
•Select the macro that you created and click on Run.
Scrolling the Timescale on project open
This tool solves the annoyance of longer projects of having to scroll the timescale
every time you open a project file. What it does:
1. If the project is in the future, scroll to the project’s start date.
2. If the project is in the past, scroll to the project’s finish date
3. Otherwise scroll to today’s date
The Code
The code lives in the Project_Open event and consists of:
As the code is in your Global.Mpt file, it works when you open any project.
To test, open any project and check the date on the timescale to confirm
Project has scrolled it as required.
For useful examples of MSP Macros check the following link please;
http://support.sas.com/documentation/cdl/en/orpmug/66109/HTM
L/default/viewer.htm#orpmug_msptosas_sect022.htm
http://www.projectvbabook.com/VBA-Sample-
Code/VBASampleTImescaleScroll.html