By: Shamima Sultana

In reply to Musthafa.

Hello Musthafa,

To prepare manual bin card you can follow the steps of our article,
1. Design a standard bin card with fields like Item Name, Item Code, Quantity, etc.
2. Ensure your item data is stored in a separate Excel worksheet with columns for Item Name, Code, Quantity, etc.
3. To automatically pull data from your stock worksheet to the bin card, use the VLOOKUP function (or INDEX-MATCH for more flexibility).
For example, if the item code is in cell A2 of your bin card, and your item data is in a worksheet named “StockList,” the formula to fetch the item name might look like this:
=VLOOKUP(A2, StockList!A2:E100, 2, FALSE)
This formula will search for the item code in column A of “StockList” and return the item name from column B.

You can use VBA code to automatically loops through each item in the stock list, populates the bin card template, and prints it. Ensure that your bin card is properly formatted for printing. You can do this by setting print areas and page breaks.
Run the VBA to automatically fill and print bin cards for all items in your stock.

Sub PrintBinCards()
Dim itemRow As Integer
Dim lastRow As Integer
lastRow = Sheets("StockList").Cells(Rows.Count, 1).End(xlUp).Row

For itemRow = 2 To lastRow
' Copy item data to bin card template
Sheets("BinCard").Range("A2").Value = Sheets("StockList").Cells(itemRow, 1).Value 'Item code
Sheets("BinCard").Range("B2").Value = Sheets("StockList").Cells(itemRow, 2).Value 'Item name
Sheets("BinCard").Range("C2").Value = Sheets("StockList").Cells(itemRow, 3).Value 'Quantity
' Add any other necessary fields here

' Print the bin card
Sheets("BinCard").PrintOut
Next itemRow
End Sub

Regards
ExcelDemy