+ Reply to Thread
Results 1 to 9 of 9

Create delivery request upon button click

  1. #1
    Registered User
    Join Date
    06-12-2010
    Location
    Hereford, England
    MS-Off Ver
    Excel 2003
    Posts
    73

    Create delivery request upon button click

    Hi All,

    I want to have a button on my excel document that when pushed will automtically create a delivery request for products.
    If the quantity drops below the minimum stock and there is stock available in the warehouse, it would add the product name & rotation number to the delivery request form.
    Also it would recommend a quantity to order based on the difference between the maximum stock holding and the actual stock in the store.
    I've attached a dummy document so that you can see what I'm after.

    How can I achieve this?

    Any help would be much appreciated

    Thanks in advance
    Attached Files Attached Files
    Last edited by Baziwan; 09-29-2010 at 11:33 AM.
    Kind Regards

    Baz

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Create delivery request upon button click

    Hello Baz,

    After having a look at your workbook, I am uncertain about what you want. There is not much to work with. It probably seems clear and easy to understand to you because you are very familiar with the process. As for the rest of us, we are not. You should provide more detailed "before" and "after" explanations. Even if a point seems obvious or trivial, you should include it.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    06-12-2010
    Location
    Hereford, England
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Create delivery request upon button click

    Hi Leith,

    Sorry about the lack of detail. I've attached another example with more details.
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Create delivery request upon button click

    Hello Baziwan,

    This macro works correctly on the sample workbook. The code is written to allow for 1 or more warehouses. The warehouse name must contain the word " Bond " in the row 1 headers. The macro also determines the last entry made in the database. Your table can grow and the macro will not need to be changed. Test this on a copy of the real database and let me know how it works. Here is the macro that has been added to the button on the "Database" worksheet.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-12-2010
    Location
    Hereford, England
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Create delivery request upon button click

    Hi Leith,

    That's great, it's almost exactly what I'm after. Is it possible to make a few changes. Firstly, I only need products that have dropped below the minimum stock value to be added to the delivery request sheet & secondly, I already have a macro for goods received that deducts from the bond column and adds the amounts to the store quantities when it is booked in. Everything else is great tho, so can it be modified so that it doesn't change the values on the database sheet & only enters details of stock that has dropped below the minimum stock holding? Sorry, I should have mentioned these in the details I provided.

    Thanks for your help with this Leith, your time is very much appreciated!

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Create delivery request upon button click

    Hello Baziwan,

    I made the changes you asked for and they have been added to the attached workbook. Here is the updated macro code.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-12-2010
    Location
    Hereford, England
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Create delivery request upon button click

    Excellent, thanks very much Leith. I'll mark this as solved.
    I wonder If I could pick your brains regarding another problem.
    I mentioned that I'm using another macro to deal with goods coming in from an external warehouse. It's set up for that warehouse having stock under two different rotation numbers like the file attachment for this. However, recently the rotations have increased and it could be as many as up to 6 different rotations and I'm unsure how to adapt my code to deal with it. If I post it under a new thread, is there any chance you could take a look at the code for me?

    Thanks again for your help with this!!

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Create delivery request upon button click

    Hello Baz,

    You can add as many new warehouses as you want. The only criteria are the warehouse header must contain the word " Bond " (with the spaces) and the first column to the right must be the rotation number, and the second column to the right must have the received date.

  9. #9
    Registered User
    Join Date
    06-12-2010
    Location
    Hereford, England
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Create delivery request upon button click

    Hi Leith, that wasn't what I was referring to. I'm referring to a macro that transfers the stock from the bond quantity to the store quantity when the delivery arrives. I'll post it under a new thread titled "Transfer values".

+ 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