0% found this document useful (0 votes)
157 views7 pages

Create Gantt Chart and Project Timeline Using MsExcel VBA Macros - LinkedIn PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
157 views7 pages

Create Gantt Chart and Project Timeline Using MsExcel VBA Macros - LinkedIn PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

12/9/2019 (6) Create Gantt Chart and Project Timeline using MsExcel VBA Macros | LinkedIn

1 5
Reactivate
Search Premium for Free
Home My Network Jobs Messaging Notifications Me Work

by Bayu Yanuargi

Create Gantt Chart and Project


Timeline using MsExcel VBA Macros
Published on May 12, 2017

bayu yanuargi
Regional Operations & project management 3 articles Follow
SEA Scope

There are many ways to create the Gantt Chart in MsExcel, I choose the complicated way
because it was very challenging to create Gantt Chart by automatically using MsExcel.

This posting inspired from my current project with local NGO in bogor. This NGO doesn’t
have MSProject software to manage the project, so I have the initiative to create a simple
tool using MsExcel for them which are adopted from MSProject functions:

a. Gantt Chart

b. Resources Management

c. Reporting

d. Project Risk based on schedule

Actually, MsProject has many functions besides of that above four functions, but because I
have to develop it by myself and my schedule is very tight so I just only can adopt that’s
four functions only.

The result of this post will be like below video,

Project Management excel

The workflow for this tools will be like below diagram:

Messaging

https://www.linkedin.com/pulse/create-gantt-chart-project-timeline-using-msexcel-vba-bayu-yanuargi/?src=aff-lilpar&veh=aff_src.aff-lilpar_c.partne… 1/7
12/9/2019 (6) Create Gantt Chart and Project Timeline using MsExcel VBA Macros | LinkedIn
1 5
Reactivate
Search Premium for Free
Home My Network Jobs Messaging Notifications Me Work

1. Preparation Create new Excel sheet with VBA macros is enabled:

So firstly we have to create the xlsm file using MsExcel to enabled the macros in MsExcel.
Create the excel with 5 sheet

a. Activities (The sheet for our plan)

b. Overallocated (the auto sheet to identifying the overallocated resources)

c. Report (The auto sheet to produce the report)

d. 0 (the supporting sheet to estimated the overallocated

e. 1 (the supporting sheet to create Report)

f. Timeline (the supporting sheet for highlighting date and list of Day Off)

Create the excel sheet like below screenshot, don’t forget to create the calendar in row 4 and
5 from whenever you want to start and finish the project, on my excel I created 1 Jan 2017
to 31 Dec 2017

After that GO TO the Timeline sheet follow below step:

Column A1 type the formula: =TODAY() ‘this formula is to produce the today date
Messaging

https://www.linkedin.com/pulse/create-gantt-chart-project-timeline-using-msexcel-vba-bayu-yanuargi/?src=aff-lilpar&veh=aff_src.aff-lilpar_c.partne… 2/7
12/9/2019 (6) Create Gantt Chart and Project Timeline using MsExcel VBA Macros | LinkedIn

Search
Column B1 type the formula: =TEXT(A1,”dddd”)1‘this formula is to produce 5the today Reactivate
Premium for Free
Home My Network Jobs Messaging Notifications Me Work
day in text

Column C1 type the formula: =A1&B1 ‘this formula is to combined two column A and
B

This Timeline Sheet is NOT MUST but Nice to Have, the result of this step will be like
Like Comment Share 30 · 54 Comments
below snapshot

Still, on the Timeline Sheet, we need to define the Day off date (holiday list), you can get it
from the government website

BACK TO ACTIVITIES SHEET, we will make many Conditional Rule to highlighting


some information. Go to HOME à Conditional Formatting à New Rule

We will create at least 9 rule.

a. Rule 1 is for the “On Risk” Project Status Applied to column i:i

b. Rule 2 is for “UnFinish” work Applied to column i:i

c. Rule 3 for “Late” Rule Applied to column i:i

d. Rule 4 for “Not Started” Rule Applied to column i:i


Messaging

https://www.linkedin.com/pulse/create-gantt-chart-project-timeline-using-msexcel-vba-bayu-yanuargi/?src=aff-lilpar&veh=aff_src.aff-lilpar_c.partne… 3/7
12/9/2019 (6) Create Gantt Chart and Project Timeline using MsExcel VBA Macros | LinkedIn
1 5 Reactivate
Search Premium for Free
Home My Network Jobs Messaging Notifications Me Work

e. Rule 5 for “Started” Rule Applied to column i:i

f. Rule 6 for “Finish” Rule Applied to column i:i

g. Rule 7 for Today Day Highlighting applied to row $5:$5

See the formula =Timeline!$C$1=(A$4&A$5) The excel will highlight the value in row 5:5
which have equal value between cell C1 in timeline sheet and Activities sheet combination
of A4 and A5

h. Rule 8 for Timeline Highlighting applied to cell A1

See the formula, the cell will be highlighted if = cell J4 higher or equal than D6, AND J6
Less or equal than E6

Messaging

https://www.linkedin.com/pulse/create-gantt-chart-project-timeline-using-msexcel-vba-bayu-yanuargi/?src=aff-lilpar&veh=aff_src.aff-lilpar_c.partne… 4/7
12/9/2019 (6) Create Gantt Chart and Project Timeline using MsExcel VBA Macros | LinkedIn
j. 1
Rule 9 for today date highlighting applied to row $4:$4 5
Reactivate
Search Premium for Free
Home My Network Jobs Messaging Notifications Me Work

See the formula, the cell will be highlighted if the cell value have same value with Timeline
sheet cell A1

2. Now we will develop the Macros function to produce the Gantt Chart and
Progress status

Go to Developer menu, if the developer menu is not exist, you have to add through the File à
Option à Customize Ribbon, find the Developer menu and Add to the right box.

In the Developer menu, click the “Visual Basic” tool box and add Module to start the
coding, we will code all Macros VBA on Module and for closing we will code some macros
in “ThisWorkBook”

a. Progress Status Coding, This coding will produce like below snapshot

Copy paste the Code in link provided in the Module 1 (PROGRESS CODE)

b. Gantt Chart / Timeline Coding, This coding will produce like below snapshot:

Copy paste the Code in link provided in the Module 1 (GANTT CHART)

c. Overallocated coding, This coding will produced like below snapshot

Messaging

https://www.linkedin.com/pulse/create-gantt-chart-project-timeline-using-msexcel-vba-bayu-yanuargi/?src=aff-lilpar&veh=aff_src.aff-lilpar_c.partne… 5/7
12/9/2019 (6) Create Gantt Chart and Project Timeline using MsExcel VBA Macros | LinkedIn
1 1 (Overallocated)
Copy paste the Code in link provided in the Module 5
Reactivate
Search Premium for Free
Home My Network Jobs Messaging Notifications Me Work

d. Report Coding, This coding will produce the project summary

Copy paste the Code in link provided in the Module 1 (REPORTING)

f. Create the Button to launch the tools, The coding will be produced below snapshot, but
you need to close and reopen the MsExcel after creating this code before the add-ins can be
displayed.

Copy paste the Code in link provided in the ThisWorkbook (ADD INS)

Close and reopen your MsExcel to get new add-ins button on your File

Ok DONE,

is it complicated enough? if no, you are the best, \

if yes, don’t worry just leave your email address on below comment to get the excel sheet
from me

Thanks for reading this post and you felt this post is useful please share it with your network

Posted by Bayu Yanuargi on 2017

Report this

Published by
bayu yanuargi 3 articles Follow
Regional Operations & project management SEA Scope
Published • 3y

Reactions
Messaging

https://www.linkedin.com/pulse/create-gantt-chart-project-timeline-using-msexcel-vba-bayu-yanuargi/?src=aff-lilpar&veh=aff_src.aff-lilpar_c.partne… 6/7
12/9/2019 (6) Create Gantt Chart and Project Timeline using MsExcel VBA Macros | LinkedIn
1 5
Reactivate
Search +22
Premium for Free
Home My Network Jobs Messaging Notifications Me Work

54 Comments

Add a comment…

ANGSHUMAN SENGUPTA • You


Senior Geologist at Thiess India Private Limited

Could you please share it? Email: [email protected] now


Like Reply

Abdullah Al Fatta • 2nd


Master of Science - MS at The University of Texas Rio Grande Valley

Could you please share it? Email: [email protected] 1mo


Like Reply

Jonathan Stephens
Project Manager | Business Analyst

Hi, could you please share the file? My email is: [email protected] Thanks!! 1mo
Like Reply

Load more comments

bayu yanuargi
Regional Operations & project management SEA Scope

Follow

More from bayu yanuargi

Using ArcGIS to Calculate the Cut ArcMAP : Pythagoras &


and Fill Volume Trigonometry for Point Movement
bayu yanuargi on LinkedIn bayu yanuargi on LinkedIn

Select Language
About Talent Solutions Community Guidelines Questions?
Visit our Help Center. English (English)
Careers Marketing Solutions Privacy & Terms

Advertising Sales Solutions Mobile


Manage your account and privacy.
Small Business Safety Center Go to your Settings.

LinkedIn Corporation © 2019

Messaging

https://www.linkedin.com/pulse/create-gantt-chart-project-timeline-using-msexcel-vba-bayu-yanuargi/?src=aff-lilpar&veh=aff_src.aff-lilpar_c.partne… 7/7

You might also like