+ Reply to Thread
Results 1 to 9 of 9

Stock control

  1. #1
    Registered User
    Join Date
    11-03-2011
    Location
    Holt
    MS-Off Ver
    Excel 2010
    Posts
    27

    Stock control

    Good time of the day.
    I am currently creating stock control program.
    My question is, how would I create a stock control macro in this kind of situation:
    8412ae9da491.png
    Where I have a list of chosen equipment and the quantity of that equipment to be subtracted from the list of equipment here
    4b64c55999d9.png

    Best regards, Vlad

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Stock control

    If you want help with Excel then post an example workboo, not images
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-03-2011
    Location
    Holt
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Stock control

    Here it is
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Stock control

    The names don't match in each sheet. To start with you need to use Data Validation lists to select the items from

  5. #5
    Registered User
    Join Date
    11-03-2011
    Location
    Holt
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Stock control

    modified, should be ok now
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-03-2011
    Location
    Holt
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Stock control

    Is it all right?

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Stock control

    Try this assigned to your button
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    11-03-2011
    Location
    Holt
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Stock control

    Could you please explain this line
    If Not rStock Is Nothing Then rStock.Offset(, 1).Value = rStock.Offset(, _
    1).Value - rCl.Offset(, 1).Value
    End With
    I have some troubles with moving this code into actual project.

    Also, where would I put piece of code which will not allow stock to go below zero?

    Thanks so far.

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Stock control

    It's allowing for the cell not being found

+ 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