I'm not sure I've been clear.
What I have is a MS Word document that generates case labels for a list of products. Since the labels have different title text and barcode information for each part number, I have embedded an excel spreadsheet in the MS Word document that contains all the information for each part number.
The user selects the part number and enters a few bits of information. The Word VBA code then retrieves the additional data from the embedded worksheet and uses that data to populate the label. I don't have any problem getting the application into the object or with getting any data.
The thing I don't like is that when the macro activates the excel spreadsheet to retrieve the data, the spreadsheet opens visibly on the screen. I tried to use
wb.Application.WindowState=xlminimized
where wb is the name of the object that currently contains the spreadsheet, but it tells me that the application does not support that object or property.
Does this make more sense?
-Zack