Consulting

Results 1 to 16 of 16

Thread: difficult macro to count values

  1. #1
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location

    difficult macro to count values

    Hi Experts

    "Firstly, let me apologies - i am aware that this question is on the excel forum", but no one can find a solution on the MSP forum".

    Need a macro that counts the number of level 1 - 4 enteries in a column with the heading Milestones in it, in MS Projects (using the form as shown in the screen print) - apologies unable to up load the file even when zipped, this site does not allow up loading of .mpp file extension.

    In the screen print you well see a column label field name, if you open MSP (see second screen print) and right click in a particular column then you see a option from sub menu that says customized fields, this list all the field names in MSP...............i want to show the same field names in the userfrom that is in the screen print......

    so here is the sequence:

    1. user selects a field name that is the same as the field name (as if the user was right clicking in a particluar column as described above)...

    2. the user select a milestone level say 2

    3. clicks calculate macro button on userform macro counts the how many times the number 2 so in the column with the heading title "milestones"..... and returns the values....

    4. cancel button on userform to simply exit......

  2. #2
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    second screen print

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Got an MSP file?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    yes....i have but only a blank one the main file is too large to up load even when zipped...

    please find attached MSP file

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can't you creat a file with enough sample tasks etc, to demonstrate what you want to do. I can't say I feel disposed to do it for you.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    Ok let me create something and post the new file back here

  7. #7
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    Ok...........please kindly find attached a file with sample data under the column heading "Milestones"..

  8. #8
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    Any feedback appreicated.....

    thanks

  9. #9
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    Ok i have managed to get this far but (see file)

    When you open the MSP file, and click on the red flag a customized form appears, the problem to hand is that i cannot get the form to generate the right answers for each category.....

  10. #10
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Pete,

    I will make an effort to get to it today, but MPS VBA is a learning curve for me too. Just temper the enthusiasm
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  11. #11
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    Thank you sir, for your patients on this one......

  12. #12
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    Hi XLD any news on this one

  13. #13
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    any ideas people

  14. #14
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Bob's working on it Pete.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  15. #15
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    apologies, i well wait for bob

  16. #16
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location
    bob's any thoughts on this one....

Posting Permissions

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