+ Reply to Thread
Results 1 to 3 of 3

Macros color cells to make something as gantt chart

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    manchester
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macros color cells to make something as gantt chart

    Hello everyone
    Trying to make excel gantt chart with macros and need some help,the problem is that I don’t have proper dates hence all the gantt charts online wont work.
    As a dates I have calendar weeks (CW01,CW02 etc..)
    What I did so far looks like this:
    Sub Macro1()
    On Error Resume Next
    Dim current As String
    For I = 1 To 1340 ' go from first cell to last
    current = "D" & I ' cell counter
    Range(current).Select '
    If Range(current).Text = "CW01/14" Then
    Range(????).Interior.ColorIndex = 5
    End If

    The thing is I don’t know what to write in the range for picking up correct row, so every task date would be presented in the correct row.

    Can someone help with this please.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: Macros color cells to make something as gantt chart

    Good Morning Karbidas,

    This isn't an answer to your question. But the Gantt Chart in this workbook is a pretty good one.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-20-2014
    Location
    manchester
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macros color cells to make something as gantt chart

    Thanks

    right got new macro working (ish) only need calculation of value see below:
    If Range(current).Text = "CW01/14" Then
    Range("J" & ActiveCell.Row).Resize(, ??the number which i want to use from cell F???).Interior.ColorIndex = 5
    End If

    Can someone help me with that?

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. make chart label color same color as data point
    By desertsp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2013, 05:02 PM
  2. Replies: 5
    Last Post: 10-04-2012, 07:01 AM
  3. Replies: 0
    Last Post: 07-13-2012, 06:40 PM
  4. GANTT chart based on conditional formatting - macros to merge cells
    By Florinnn in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-25-2010, 12:21 PM
  5. Replies: 2
    Last Post: 11-19-2005, 12:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1