Create Gantt Chart and Project Timeline Using MsExcel VBA Macros - LinkedIn PDF
Create Gantt Chart and Project Timeline Using MsExcel VBA Macros - LinkedIn PDF
1 5
Reactivate
Search Premium for Free
Home My Network Jobs Messaging Notifications Me Work
by Bayu Yanuargi
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
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.
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
So firstly we have to create the xlsm file using MsExcel to enabled the macros in MsExcel.
Create the excel with 5 sheet
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
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
a. Rule 1 is for the “On Risk” Project Status Applied to column i:i
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
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
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)
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
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,
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
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…
Jonathan Stephens
Project Manager | Business Analyst
Hi, could you please share the file? My email is: [email protected] Thanks!! 1mo
Like Reply
bayu yanuargi
Regional Operations & project management SEA Scope
Follow
Select Language
About Talent Solutions Community Guidelines Questions?
Visit our Help Center. English (English)
Careers Marketing Solutions Privacy & Terms
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