We have a Microsoft Excel Workbook, with 6 worksheets. The worksheets contain rows of data, each representing a service task. Although the worksheets are slightly different, each contains not more than 12 columns of information, and never has more than 20 rows. We are married to this workbook – we don’t want to change it, or use another database to house this data. This workbook is on a shared network connection. Multiple users can access it, add/edit data, and save their changes. Some users also copy this workbook to their local PC’s, edit/save, and then upload the new copy.
We also create, separately, a work instruction form, called an FWO. This has been a (Scansoft) OmniForm form, but we could as easily create this form in MS Word. There will actually be several different versions of this form (some of the data is unique to the type of job.)
Finally, the individual sheets in the workbook will correspond to a specific form.
So, I need to use VB, or some other language, to do the following:
- Prompt the user to open the MS Excel Workbook, (using open file dialog,) – this file should open onto the users desktop.
- The user will then navigate to the particular sheet, and to the row that they are interested in – this will put the focus on the correct row and column location
- Now, the user will push a button on the VB application that will;
- Open the Word Document that corresponds to the active sheet in the workbook, as a blank document, on the desktop.
- Export the values from each column in the active row to the corresponding fields on the Document.
- The user will print/save this, in Word.
- At this point, the user should be able to either do this again, (navigate to the correct sheet and row, push the button to create a new blank form, edit/save it in word, etc.)OR
- The user pushes a button on the VB application that will close everything out, including the application
Although it’s been suggested that we can do this in VBA, I’d like to see it as a standalone application, so there’s no code in the Workbook or the Word Documents.
I need help; I've trolled the web, and can get bits and pieces of this to work in VB, or in VBA but I'd like to find the resources that will help me learn how to do this.
Or, find a way to find the code snippets, and put them all together.