I am working with Google Sheets/Excel to take location inventories and turn them into an order. Each type of item has a block that references the name and quantity in the inventory and puts it on the order sheet. Example:
Dim itemNames As String
Dim itemQty As String
Set itemNames = order.Range("A3:A10")
itemNames = stock.Range("A6:A13").Value
Set itemQty = scoops.Range("B3:B10")
itemQty = stock.Range("E6:E13").Value
I am using google-sheets and download them in excel format so I can use the macro sheet. There are 3 sheets to each book. The books it operates on have ranges of cells (with headers for each sub-column). When people reorganize the books, I have to rewrite the cell references, but the product names stay the same. I was hoping to find a way to look in the order column (each product has that and a name, but the other columns vary) and copy each name and quantity based on whether or not the quantity is >0. I couldn't figure out how to do it by value or header name.
I would like to do it in javascript for the google sheets, but I couldn't figure out how based on the documentation or language reference they provide. I will keep digging at the issue and post a reply if I figure it out.