Sorry for my ignorance, but I am new to using any of the more advanced features of Excel. I have basic programming knowledge in the area of C and AHK, but for a current project I need to do everything within Excel.
So here is what I am trying to do. I have a workbook in where I will be creating several work order sheets on a daily basis. On these sheets I have set information about a product, serial numbers, order numbers, etc. This information will always be filled out. I also have details about the what is in the product. Some of these items will always be filled out while others will be left blank. Each row designated for the option items are organized by location in the product so if the option is not present that row will be blank. The optional items are listed in 3 columns, a part number, quantity and part description. I also have another sheet with a label that will be printed out to a Zebra printer. This label will contain the set information about the product, the set optional items and all of the other optional items.
What I would like to be able to do is transfer the information from the work order sheet to the label sheet. My original idea was to define each field on the work order sheet and have the label point to that defined field. I would then add a button on the work order sheet that would change all the defined fields by changing the page name to that of the current work order page and then trigger excel to choose the Zebra printer and print the label page.
First of all is this the best way to do this or is there a much simpler method to achieve the same results? Also what would be the best way to have excel pull information from the first optional item field, if that field is blank then move to optional item field 2 and so on until it reaches a field with data in it. I was going to try a long function like "=IF(ISBLANK(Option1PN),Option2PN, Option1PN)" but continuing it continue checking fields until it found one with data. The problem with doing this is the next line in the label would need to know to not start at Option1PN but instead to start after the option that was used in the prior row. I also had the idea of having it copy all the optional fields to another area of the work order that would be hidden and then sorting just those columns to get rid of the blank fields and then just pulling the data from there.
If anyone knows of a better way to do this it would be much appreciated.
Bookmarks