Hi Trevor, here's some of what I have so far... thanks - glen.
Private Sub Open_CommandButton_Click()
Dim objWord As Word.Document
Dim objExcel As Excel.Worksheet
Dim PackageNumber As String, PackageName As String, RevNum As String, BuyerName As String, BuyerPhone As String, BuyerFax As String, BuyerEmail As String, BidDueDate As String, CurrentDate As String, ReqDate As String, CompanyName As String, CompanyAddress1 As String, CompanyAddress2 As String, ContactName As String, ContactPhone As String, ContactFax As String, ContactEmail As String
Dim PackageNameNum As String
'// Set variable values from what is entered on the form. \\
BuyerName = BuyerName_ComboBox.Value
PackageNameNum = ReqNum_ComboBox.Value
RevNum = ReqRevNum_ComboBox.Value
ReqDate = ReqDate_ComboBox.Value
BidDueDate = BidDueDate_ComboBox.Value
CompanyName = CompanyName_TextBox.Value
CompanyAddress1 = CompanyAddress1_TextBox.Value
CompanyAddress2 = CompanyAddress2_TextBox.Value
ContactName = ContactName_TextBox.Value
ContactPhone = ContactPhone_TextBox.Value
ContactFax = ContactFax_TextBox.Value
ContactEmail = ContactEmail_TextBox.Value
'// Search (.find) ranges to set remaining variables based on what is entered on the form. \\
With Sheet4.Range("BuyerName")
BuyerPhone = .Find(What:=BuyerName, After:=.Cells(1, 1), _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False).Offset(0, 1)
BuyerFax = .Find(What:=BuyerName, After:=.Cells(1, 1), _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False).Offset(0, 2)
BuyerEmail = .Find(What:=BuyerName, After:=.Cells(1, 1), _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False).Offset(0, 3)
End With
With Sheet2.Range("PackageNumberList")
PackageNumber = .Find(What:=PackageNameNum, After:=.Cells(1, 1), _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False).Offset(0, 1)
PackageName = .Find(What:=PackageNameNum, After:=.Cells(1, 1), _
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False).Offset(0, 2)
End With
'// Start Word as an Application \\
Set objWordApp = New Word.Application
'// Set the Word App to Visible \\
objWordApp.Visible = True
'// Open the Template Doc - B) INSTRUCTION TO BIDDERS \\
objWordApp.Documents.Open Filename:="L:\00137-HEBTS\00\PP\Procurement Forms\RFQ\B) Instr to Bidders - Current Template 25 Apr 11.doc"
'// Set the document as an object for easy referencing \\
Set objWord = objWordApp.Documents(1)
'// Go to a pre-defined bookmark \\
objWordApp.Selection.Goto What:=wdGoToBookmark, Name:="PackageNumber1"
'// Type the text passed from excel \\
objWordApp.Selection.TypeText Text:=PackageNumber
objWordApp.Selection.Goto What:=wdGoToBookmark, Name:="RevNum"
objWordApp.Selection.TypeText Text:=RevNum
objWordApp.Selection.Goto What:=wdGoToBookmark, Name:="ReqDate1"
objWordApp.Selection.TypeText Text:=ReqDate
objWordApp.Selection.Goto What:=wdGoToBookmark, Name:="BuyerName1"
objWordApp.Selection.TypeText Text:=BuyerName
'**** I repeat this for several different documents. ****'
'// Close form once complete. \\
Unload Me
End Sub