+ Reply to Thread
Results 1 to 15 of 15

Inventory Supply Sheet

  1. #1
    Registered User
    Join Date
    08-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2000/2007
    Posts
    30

    Inventory Supply Sheet

    Hey Guys

    I have a excel worksheet I am trying to create. I have done some research to try and figure out if this is possible or not but have not come up with much. I have a simple chart made that has a Total of a certain Item, a number taken of that item, and a current total that subtracts the two.

    I want to know if it is possible to have the chart update after I take a item. For example, if I take 5 cans of air, my current stock left will show as 18. Is there a way to make the "number taken" column reset to Zero and the current inventory update to 18 from 23. And this would do this each time someone uses this sheet.

    I hope I am making sense I am trying to describe it as best as possible.

    Thanks for your help

    I am using office 2000 at my work
    Attached Files Attached Files
    Last edited by Fish10800; 08-17-2011 at 05:23 PM.

  2. #2
    Registered User
    Join Date
    07-27-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Help with Inventory Supply Sheet

    I can think of several ways to do this using a macro. The simplest would be one that activates on close, pasting the numbers from column F into column C, and clearing column D.
    Unfortunately, this would require that the users have macros enabled, which is often a pain when you want to widely distribute something.
    Perhaps somebody else has another idea?

  3. #3
    Registered User
    Join Date
    08-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2000/2007
    Posts
    30

    Re: Help with Inventory Supply Sheet

    well there is only going to be myself and my boss and maybe one other using this sheet so the macro idea would not be a issue we are both in the IT department with almost no restrictions
    Last edited by Fish10800; 08-17-2011 at 04:29 PM.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Help with Inventory Supply Sheet

    What about...

    This is worksheet code >> right click on tab >> view code >> paste on right side of screen

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    08-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2000/2007
    Posts
    30

    Re: Help with Inventory Supply Sheet

    That works for what I want but the numbers are off.. If I put 1 in the number taken section it takes two out instead of 1

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Help with Inventory Supply Sheet

    Try this slight modification...

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2000/2007
    Posts
    30

    Re: Help with Inventory Supply Sheet

    That works but now the number taken colum doesnt disappear and the Quantity number stays the same.

    Thanks for your help I really appreciate it

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Help with Inventory Supply Sheet

    Open up your VBE (Alt + F11) >> Ctrl + G (Opens the Immediate Window) >> type in >> application.EnableEvents = True >> select enter

    This will reset the EnableEvents which sometimes gets turned to false and needs to be true.

  9. #9
    Registered User
    Join Date
    07-27-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Help with Inventory Supply Sheet

    Try this code in a macro, either bound to a button or run otherwise:

    Please Login or Register  to view this content.
    It's very hard-coded, ie you'll need to manually change the references to 19 if you expand the list.

    Does that help?

  10. #10
    Registered User
    Join Date
    08-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2000/2007
    Posts
    30

    Re: Help with Inventory Supply Sheet

    @ Jeffrey I changed the false to true and it still does the same thing. the number taken section does not clear after you enter in a number. the correct number is subtracting correctly

    @Rosilisk would I enter this in the same spot (the view code section) or would I enter it some where else. I put it in the view code section and it didnt seem to do anything. Am I missing something?

  11. #11
    Registered User
    Join Date
    08-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2000/2007
    Posts
    30

    Re: Help with Inventory Supply Sheet

    I am sorry my mistake @jeff it does work properly I tried it again but is there a way to make the number under Quantity update after you enter the number you took?

  12. #12
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Inventory Supply Sheet

    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-27-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Inventory Supply Sheet

    I have bound it to a button in this case. I pasted it in 'module 1' within the workbook, and when creating the button under 'developer' -> objects I selected the 'refresh' macro.

    See the attached spreadsheet.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2000/2007
    Posts
    30

    Re: Inventory Supply Sheet

    Thank you guys I appreciate it these files both work just how I was thinking.
    @jeffreybrown thank you the file works perfectly now
    @rosilisk the button Idea I really like thanks agian

    I will show these both to my boss see what one he wants to use but both will work. Thanks again for your help guys

  15. #15
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Inventory Supply Sheet

    You're very welcome and thanks for the feedback

+ 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