+ Reply to Thread
Results 1 to 13 of 13

Excel VBA Help with integer variables and flagqoutas?

  1. #1
    Registered User
    Join Date
    05-01-2014
    Location
    united states
    MS-Off Ver
    excel 2010
    Posts
    4

    Excel VBA Help with integer variables and flagqoutas?

    Hi I really need help with a project I am doing. I got super confused on the very last part can anyone look at this and tell me what it means? OR could I send you the project which has all the information and would be far more clear? That way you can see his comments and what he wants?

    Modify the existing code in FlagQuotas accordingly to increment a counter variable for each ticket
    holder, but only when one of their cell values has been flagged as being greater than or equal to a
    quota. Note that comments have been included in the sub procedure to assist you in knowing
    where to insert your code and advice on how to handle the processes. Each comment begins with
    "PROJECT 3 HINT…". Also, this workflow should be followed:
    • Integrate proper indenting of all statements.
    • Modify the existing comments to include your name and code creation date.
    • Declare 4 new Integer variables, suitably named (i.e. prefix each variable with "int").
    • Next, incorporate the VBA code to increment each of these 4 variables at the right time (i.e. when
    the quota has been met or exceeded). This would involve creating a Select Case statement that
    determines which ticket holder column the active cell is in, and then update his/her variable.
    • Once the For…Next loop completes, set each of the "Total MBE" cells (D16:G16) with its
    matching variable value. Here's an example (note that sample data is shown; your values may
    vary) of what Section 4 looks like after the above logic has been implemented (9 for Jack M., 6
    for Natalie C., etc…)…
    Page 6 of 7
    3. Modify the MsgBox statement that ends the sub procedure to include the total count of MBE values.
    For example, if Jack M. had 9, Natalie C. had 6, Anna M. had 5, and Bob T. had 5, the message box
    would be display…
    4. Test/debug your VBA code to ensure correctness. Click the "Evaluate Ticket Quotas" button to
    perform your test. This button is already assigned to a macro that will assign new values to the
    worksheet and call the FlagQuotas sub procedure.
    Last edited by bigal24ak; 05-02-2014 at 09:46 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel VBA help please

    Please take the time to review our rules. There aren't many, and they are all important.

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Excel VBA help please

    @6SJ: I think it does describe his problem. What else is he going to say? Pleas can someone do my homework for me? Looks a fairly comprehensive brief to me.

    We need Tony Valko ... he's good at guiding without actually doing it
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Huntsville, AL
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Excel VBA Help with integer variables and flagqoutas?

    Which step is giving you the most grief?

  5. #5
    Registered User
    Join Date
    05-01-2014
    Location
    united states
    MS-Off Ver
    excel 2010
    Posts
    4

    Re: Excel VBA Help with integer variables and flagqoutas?

    There is comments in the project but im still not sure what to do? I have tried a few forums no one seems willing or able to help?

  6. #6
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Huntsville, AL
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Excel VBA Help with integer variables and flagqoutas?

    It looks like home work, so we don't want to do it for you.

  7. #7
    Registered User
    Join Date
    05-01-2014
    Location
    united states
    MS-Off Ver
    excel 2010
    Posts
    4

    Re: Excel VBA Help with integer variables and flagqoutas?

    O dear. I don't know where to begin I don't program never have I have no idea what this guy is talking about or asking be to do. He might as well have written this in a different language.

    Dumb comments about this being homework are not helpful and just a waste I need help. An explanation an example something. Or it would be great if someone looked at my project and said this is wrong it needs to be something like this.....

    Please and thank you.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Excel VBA Help with integer variables and flagqoutas?

    Is it homework? Yes, or no? There's no point being on the course if YOU don't do the work, or at least try to do it. What have you tried? What, specifically don't you understand?

    If you're really struggling, you should be talking to your tutor, not all the forums you can find.

  9. #9
    Registered User
    Join Date
    05-01-2014
    Location
    united states
    MS-Off Ver
    excel 2010
    Posts
    4

    Re: Excel VBA Help with integer variables and flagqoutas?

    Quote Originally Posted by TMS View Post
    Is it homework? Yes, or no? There's no point being on the course if YOU don't do the work, or at least try to do it. What have you tried? What, specifically don't you understand?

    If you're really struggling, you should be talking to your tutor, not all the forums you can find.
    I have a tutor she was able to go over the first 3/4 parts with me. When it came to this she said you should really be asking someone else as I don't feel comfortable doing this. This seems to be more programming then Excel. Personnally read the chapter twice don't understand any of it. Gave it a shot but idk if it is right without having someone look at the project and say no that's not right. It should look like this .....
    I have to do it for 4 different things. So just showing or helping me with the first I should be able to figure out the other 4. Its hard to show without seeing the project sorry. It seems like I am reading something far beyond me I don't know really what to do or where to begin.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Excel VBA Help with integer variables and flagqoutas?

    Can you upload the workbook and indicate what you have been able to do and what still needs to be done?

  11. #11
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Huntsville, AL
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Excel VBA Help with integer variables and flagqoutas?

    All 4 of these are something you could record a macro for. I am not sure what the instructions mean by normal view.

    6. Activate the "Section 1" worksheet. Record a Macro, go to the worksheet titled "Section 1". See what the coding looks like. Implement that code.
    7. Make A1 the active cell and ensure the Normal view is selected. Go to a Worksheet and select cell A1 see what the Macro looks like when you record it.
    8. Repeat this process for all worksheets. Ok here you I will give you a hint:
    Please Login or Register  to view this content.
    9. Activate the "Section 1" worksheet. Again activate the worksheet with the label "Section 1" in a recorded macro if you still need to from the recorded macro.
    10. Re-save the file using the default name.. Using a recorded macro click the Save button.

  12. #12
    Registered User
    Join Date
    05-01-2014
    Location
    united states
    MS-Off Ver
    excel 2010
    Posts
    4

    Re: Excel VBA Help with integer variables and flagqoutas?

    Ok thanks for finally getting some help I re-edited my original post all I need help with are the first half of section 4 which is now in original post. I found where he wanted me to go I open the worksheet and go to VBA and this comes up and you find the part that says Project 3 hint and that's where you are supposed to enter code I think I did what he wanted in part one or at least tried. But this should give you some idea of what he wanted. I will put in BOLD what I did. Right above it will be his directions.

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 05-02-2014 at 03:08 PM.

  13. #13
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Huntsville, AL
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Excel VBA Help with integer variables and flagqoutas?

    I would think you would want to do this:
    Please Login or Register  to view this content.
    and so on then test it.

    Thanks,

    Gregg
    Congratulations to you on taking a class. No class for me, all I know about VBA I have read in a book, recorded a Macro or learned on a forum. So this is definitely a blessing for you to learn it from an instructor.

+ 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