+ Reply to Thread
Results 1 to 11 of 11

Creating a button to remove a count on a stock list using only a part number as a REF

  1. #1
    Registered User
    Join Date
    04-06-2019
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    8

    Unhappy Creating a button to remove a count on a stock list using only a part number as a REF

    Hi All,



    Just joined as i'm having difficulties with two kind of related issues.



    1) My workbook is made up of roughly 25 worksheets relating to different manufactures of products we stock. I am trying to implement a bar code scanner into our stock taking procedure to minimise error and to speed the whole thing up (We are quite archaic over here).



    I have uploaded and removed most of the information to make the workbook as small and uncomplicated as possible to you guys.



    On the "Inventory Taking" sheet you will see an input box that will contain a serial number just scanned and a button either side to add or subtract from a data sheet stored on the worksheet "Source Page".



    How can i get this to work so when i press a button excel searches the "Source Page" for the corresponding serial number then automatically either subtracts or adds 1 depending on the button pressed?



    2)After Excel has automatically subtracted or added a stock item selected i would like the information in the cell showing serial number to be deleted and selected ready for more data input.



    I appreciate this is probably simpler then i'm imagining but I've been at this nearly all week doing as much research without actually asking a question as i can. But i'm struggling to make google present me with answers to what i'm looking for.



    I'm currently using Excel 2007.



    Thanks for your time,



    Ant.
    Attached Files Attached Files

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    The merged cells where you enter the scanned serial number are not conducive to VBA. For efficiency, all data cells should be unmerged cells.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    Try the attached file.
    Attached Files Attached Files
    Last edited by Mumps1; 04-06-2019 at 09:21 AM.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    Here is some code that might work.

    For the Add button:
    Please Login or Register  to view this content.
    For the Subtract button
    Please Login or Register  to view this content.
    You would need to attach the code to the appropriate symbol after installing it into one of the numbered code modules.
    Last edited by JLGWhiz; 04-06-2019 at 08:31 PM.

  5. #5
    Registered User
    Join Date
    04-06-2019
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    8

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    I didn't realise a merged cell changed anything, thanks for that as it makes sense on another project i'm trying to complete.

    I will try and input the code supplied via VBA when i get a chance and let you know how it turns out. Thank you JLGWIZZ



    Mumps1; The workbook you have sent me sends me an error explaining the Macro's aren't available. Am i missing something or do they not transfer with the Workbooks?

    Thank you both for your time. You will save me an awful lot of my own.

    If you ever need advice on faulty computer hardware give me a message!

    Kind Regards,
    Ant.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    The file I posted works properly for me so I'm not sure why you are getting the error. The macros are located in Module1 and the 2 buttons are assigned to the appropriate macro. I just noticed another problem. In cell B15 of the Source sheet you have "6PA0260110 or 2050". Could you clarify what this means?

  7. #7
    Registered User
    Join Date
    04-06-2019
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    8

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    Hi Mumps1;

    These type of serial numbers occur because more then one of our suppliers provide an identical part with a different serial number. It's something that is being eradicated once i have this check in and out system sorted and being replaced by our own 13 digit serial numbers in the next week or so.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    OK. That should work.

  9. #9
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    A different approach
    See attached.
    Attached Files Attached Files
    Click the * Add Reputation below to say thanks.

  10. #10
    Registered User
    Join Date
    04-06-2019
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    8

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    Hi Jack,

    I like how robust this method is, but it's going to be implemented over a large touch screen device, because of this i wanted to press the minimal amount of buttons. I have attached the route i ended up going.

  11. #11
    Registered User
    Join Date
    04-06-2019
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    8

    Re: Creating a button to remove a count on a stock list using only a part number as a REF

    This is what i ended up with. The shortened version of course. The file normally opens with the S/N box already selected i just saved wrong... When used with the bar code scanner only one click is needed either the plus or minus and it's ready to take data again. It's great with the touchscreens.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating Stock in and out data forms to take or remove quantities from an inventory sheet
    By HarrietEllen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2018, 08:47 PM
  2. Creating a Uniform Stock List
    By TristanM92 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-04-2017, 07:29 AM
  3. [SOLVED] creating a stock list - need to know how much material i have in stock
    By AleksBabic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2016, 07:10 AM
  4. [SOLVED] Remove duplicates of substitute part number
    By costi_linho12 in forum Excel General
    Replies: 11
    Last Post: 02-07-2015, 01:09 PM
  5. combine & remove duplicate part number
    By integra in forum Excel General
    Replies: 1
    Last Post: 08-19-2013, 06:08 PM
  6. Creating an automatic stock list/inventory, HELP!
    By ibz1000 in forum Excel General
    Replies: 1
    Last Post: 08-01-2013, 05:35 AM
  7. Replies: 2
    Last Post: 05-01-2009, 07:47 AM

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