+ Reply to Thread
Results 1 to 3 of 3

Projectplanner

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Projectplanner

    Hi,

    I'm about to make a projectplanner for my Company, and need some (alot) help With the macros.
    I have attached a PDF that explanes the first of many challanges.

    Hope somebody want's to share there knowledge with me.

    Thanks in advance :-)

    Best regards
    Øystein
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,036

    Re: Projectplanner

    Here is knowledge sharing:
    1. Don't use Merged cells
    2. Upload excel workbook rather than picture, pdf, word etc
    3. In B6 write =D6
    4. In C6 and to the right write: =IF(AND(B6>=$D$3;B6<$H$3);$D$3+COLUMNS($C$6:C$6);"")
    5. Replace ; with , if you get error
    Never use Merged Cells in Excel

  3. #3
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Projectplanner

    If you want to use macros instead of formulas, then use the following:

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$D$4" Or Target.Address = "$H$4" Then
    If Target = vbNullString Then Exit Sub
    If Range("D4") > Range("H4") Then Exit Sub
    Application.EnableEvents = False
    Range(Cells(6, 2), Cells(6, Cells(6, Columns.Count).End(xlToLeft).Column)).ClearContents
    Dim x&, y&
    For x = Range("D4") To Range("H4")
    Range("B6").Offset(0, y) = x
    Range("B6").Offset(0, y).NumberFormat = Range("D4").NumberFormat
    y = y + 1
    Next x
    Application.EnableEvents = True
    Else
    End If
    
    End Sub
    Please click the * below if this helps

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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