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
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
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
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
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 providedI'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.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
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.
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.
Hi Phil
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.I would love to work with someone to help me develop this inventory system.
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.
Ok, here is what I am trying to work with.
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.
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.
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.
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.
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.
Thank you very much.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks