+ Reply to Thread
Results 1 to 10 of 10

Need help with Macro to remove quantity

  1. #1
    Registered User
    Join Date
    05-28-2015
    Location
    georgia, United States
    MS-Off Ver
    365
    Posts
    5

    Need help with Macro to remove quantity

    Hello everyone,
    new to the forum and so far it has been a great help.
    looked through a lot of threads which helped but was unable to further anything as just not even decently good with excel. soon i came across something that works with my needs but just need one thing added. i tried to copy old macro code and change value to a negative but no luck.

    my need was for a 3 column inventory sheet to keep track of inventory in hand with a scanner. what i found actually does the trick when scanning a bar code and it updates the inventory.

    what i truly need is another option to scan a bar code and it removes quantity of the related product.

    A07KenP.png

    now anyone could help me with a macro in which if a barcode is scanned within that specific column then a quantity is removed of the related product.

    this is the workbook i have acquired.
    TallyUpInventory-RevGa.xls

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need help with Macro to remove quantity

    Hi Kalu,

    Welcome to the Forum!

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    05-28-2015
    Location
    georgia, United States
    MS-Off Ver
    365
    Posts
    5

    Re: Need help with Macro to remove quantity

    Now this code, does it matter which Column I set the removal scans on? For example if I select column H to be used only if quantity needs to be removed and select it before scanning, will that code work to remove a scanned quantity?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need help with Macro to remove quantity

    Please Login or Register  to view this content.
    Last edited by xladept; 05-30-2015 at 06:35 PM.

  5. #5
    Registered User
    Join Date
    05-28-2015
    Location
    georgia, United States
    MS-Off Ver
    365
    Posts
    5

    Re: Need help with Macro to remove quantity

    thank you for the great Help. Much appriciated

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need help with Macro to remove quantity

    You're welcome and thanks for the rep!

  7. #7
    Registered User
    Join Date
    05-28-2015
    Location
    georgia, United States
    MS-Off Ver
    365
    Posts
    5

    Re: Need help with Macro to remove quantity

    i have ran into a problem where if i scan a bar code longer than 11 digits, it turns it to scientific form and then the code messes up.

    tried formatting the cells to different things but still no luck. it scans the first time and pulls up the information i entered in another cell, but if i try to scan another quantity in, it gives debug error.

    any suggestions? i don't see any limitations within the code to 11 digits, but seems like its an excel thing in which too many digits are converted to scientific.


    thank you for the time

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need help with Macro to remove quantity

    Got it!

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-28-2015
    Location
    georgia, United States
    MS-Off Ver
    365
    Posts
    5

    Re: Need help with Macro to remove quantity

    once again magnificent help :D
    you are truly a mastermind at what you know.

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need help with Macro to remove quantity

    Thanks for the compliment - glad it worked!

+ 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. [SOLVED] Running total of Quantity on Hand Vs Sales Vs Quantity to Produce
    By jespo1351 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2015, 07:34 AM
  2. Replies: 4
    Last Post: 01-14-2015, 07:46 AM
  3. How to remove duplicates & add up the quantity?
    By musicF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2013, 02:26 PM
  4. Divide monthly Quantity into Weekly quantity ...
    By jitendra.mistry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2010, 01:36 PM
  5. Replies: 5
    Last Post: 11-23-2009, 06:24 PM

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