+ Reply to Thread
Results 1 to 2 of 2

How can I create a limit for how many macro buttons can be pressed ?

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    Mars
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question How can I create a limit for how many macro buttons can be pressed ?

    Hello,

    I have a sheet in excel that has macro buttons, when pressed, each macro button transfers the name of a certain ingredient from another sheet and places it under the Ingredient name column in an Invoice sheet.

    My problem is that the invoice should have a maximum of 10 ingredients and no more than that, what can I do so that only ten ingredients are allowed in the invoice sheet ?

    I have an idea now but I don't know how to implement it, I want to make it only possible to press 10 buttons, and when the user tries to press the 11th button, he'll get a message
    that says you cannot add any more ingredients.

    EDIT: If you guys have any other ideas please share !


    Thank you very much (I changed the title I hope it's good now!!!)
    Last edited by BonBonz; 12-20-2012 at 12:43 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Help with macros ?

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    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.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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