+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 28

Thread: Macro Buttons for Editing and Adding Inventory

  1. #1
    Registered User
    Join Date
    01-25-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    12

    Macro Buttons for Editing and Adding Inventory

    I am including the current file that I have attached to this post.

    I am very new to using macros and I am trying to keep an inventory of instruments and I need some help. I found this macro and have edited to my liking as far as editing the inventory pages, however I need help developing it further and adding another macro button in order to add lines of inventory. I will try my best to explain what exactly I am looking for.

    On the current "Edit Inventory" button, it can edit inventory according to model # and will make the necessary changes in the worksheet "Inventory." However, I also have a HistoryList worksheet and I need it to input the following things to the historylist. I would like the button to do the following: I am able to insert up to 5 different items at a time. I would like to be able to have a new combobox section for the different brand names. I would like to be able to select the brand names, and then the combobox for the models would only show the select models associated with the brand name listed. I would then like to be able to insert the one of the reasons for the inventory change in the drop down menu from the "info" worksheet. I would then like each of these things to transfer over to the history list upon hitting the submit button and each of the selections besides the user and time to clear in order to be able to input once again.

    I would then like to create a second button in order to add inventory. I would like the second button to be based off of the first button in that, if the selected brand and model number that is selected for editing the inventory is not currently on the list, then it pops up a second box asking for the things I have on the inventory worksheet, being the instrument, the model, the brand, a description, and the new quantity to input...and then it pastes it to the bottom of the instrument page.

    I know this is a lot to ask for and that it may take some time, but I am at an absolute stand still with being able to develop more macro and need some help. I would love to work with someone to help me develop this inventory system.

    Thanks,

    PHIL
    Attached Files Attached Files

  2. #2
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,155

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Philrulesw

    Looks like you are very competent at code so Jack has a good example here at J & R Database Form...

    let us know if have any problems or it dosent suit your needs
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  3. #3
    Registered User
    Join Date
    01-25-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro Buttons for Editing and Adding Inventory

    Well im not very competent at writing code as I only found this macro online and have edited it to my liking. I will check out the link posted, but if anyone knows how to write the code for what im looking for that would be great help.

    Phil

  4. #4
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,155

    Re: Macro Buttons for Editing and Adding Inventory

    Ok have a look and then we can adjust to suit
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  5. #5
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    mineral city, ohio
    MS-Off Ver
    Excel 2007; Excel 2000
    Posts
    4,004

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Phil

    Welcome to the Forum!

    I've looked at your Thread, attached file and your defined requirements for well over an hour trying to get an understanding of just what your looking for.
    The example that Pike has suggested I've used many times successfully (with modification of course...to meet user needs) and perhaps it'll fit your needs...don't know yet.

    What you're suggesting is Dependant ComboBoxes...Select Brand Name which will bring up a list of Instrument Types...select an Instrument Type and it'll bring up a list of Model Numbers (or what ever sequence)

    One of the elements you speak about you've not provided
    I would like to be able to select the brand names, and then the ComboBox for the models would only show the select models associated with the brand name listed
    I'd like you to develop a worksheet that lists Brand Name, Instrument Type and Model Number (or whatever sequence you choose). I've some ideas on this...may be totally crap...who knows.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Registered User
    Join Date
    01-25-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro Buttons for Editing and Adding Inventory

    Yes, I have not made the macro button for the part that you quoted because I do not know how to read the code. The information would be provided from the inventory sheet that is already present.

  7. #7
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    mineral city, ohio
    MS-Off Ver
    Excel 2007; Excel 2000
    Posts
    4,004

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Phil

    I would love to work with someone to help me develop this inventory system.
    Please show us what your inventory looks like (50 to 100 records...or the entire inventory if you so choose...I can work with that)...perhaps I can help.

    Can't help with what I see.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  8. #8
    Registered User
    Join Date
    01-25-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro Buttons for Editing and Adding Inventory

    Ok, here is what I am trying to work with.
    Attached Files Attached Files

  9. #9
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    mineral city, ohio
    MS-Off Ver
    Excel 2007; Excel 2000
    Posts
    4,004

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Phil...I'll look at this tomorrow.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  10. #10
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    mineral city, ohio
    MS-Off Ver
    Excel 2007; Excel 2000
    Posts
    4,004

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Phil...sorry I didn't get a chance to look at this today...lot's of Forum Issues today. I'll create a follow up for the AM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  11. #11
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    mineral city, ohio
    MS-Off Ver
    Excel 2007; Excel 2000
    Posts
    4,004

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Phil...looking at it. Lot's of Forum issues the last couple of days...haven't given up on it.

    Are Model Numbers UNIQUE to a Brand (manufacturer)?...to an Instrument TYPE?

    Further, will you ALWAYS have a Model Number?
    Last edited by jaslake; 01-31-2012 at 06:20 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  12. #12
    Registered User
    Join Date
    01-25-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro Buttons for Editing and Adding Inventory

    Sorry, I have been really busy with other stuff this week so far. The model numbers ARE UNIQUE to the brand/manufacturer, and they are also specific to the instrument type. Every instrument should ALWAYS have a model number. I believe some on the list I gave you don't have some model numbers, but that is only because I haven't been able to figure them out yet.

  13. #13
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    mineral city, ohio
    MS-Off Ver
    Excel 2007; Excel 2000
    Posts
    4,004

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Phil
    That's fine...I've been through about 3 or 4 iterations of this thus far. Soon I'll decide which one works best for me and send it on for your perusal.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  14. #14
    Registered User
    Join Date
    01-25-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro Buttons for Editing and Adding Inventory

    Thank you very much.

  15. #15
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    mineral city, ohio
    MS-Off Ver
    Excel 2007; Excel 2000
    Posts
    4,004

    Re: Macro Buttons for Editing and Adding Inventory

    Hi Phil
    I was two minutes from sending you a file tonight but in those two minutes I was able to break it...and it's a significant issue (crashes Excel). So, it'll be a bit. Need to do some thinking and a small bit of redesign. The sad part...don't even know if what I have suits your need. Ah well, if I can get it working I guess we'll find out. Back to you when I have something that's stable.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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.2.0