+ Reply to Thread
Results 1 to 3 of 3

Macro To Insert Remarks Based On Demand Value

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    25

    Macro To Insert Remarks Based On Demand Value

    Hi All,

    I need your expertise to set a macro to add remarks at Column AW with the criteria below:
    1) if the demand will be consumed (whereby the value = 0/<0) on a particular month, it will state : example Sept'12
    2) if by the end of the horizon the demand is able to consume = 0 @ Column AU, then remarks will be "Consumed"
    3) If demand unable to consumed >0 @ Column AU, then remarks will be "not able to BurnDown thru whole horizon Demand"

    Thank you so much...
    Attached Files Attached Files
    Last edited by cathchin; 07-27-2012 at 11:28 PM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Macro To Insert Remarks Based On Demand Value

    You could try with this code but I'm not sure that I've understood fine:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    02-10-2012
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Macro To Insert Remarks Based On Demand Value

    Hi Antonio,

    Thanks! You have understand this correctly! I've change the value to 16 for this line --> For c = 18 To 46 Step 2

    However, I am a little confused with the macro below, though the value is correct. Can you please explain? Why I cannot use If .Cells(r, "at") = 0 instead?
    Else
    If .Cells(r, "at") > 0 Then
    .Cells(r, "aw") = "Consumed"

    Regards,
    Catherine

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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