Originally Posted by
snb
Did you use #4 ?
Yes I did - thanks.
These are two parts of the code that worked for me. I added extra columns on the spreadsheet so had to define a few more variables for output on the MS word documents.
Dim WordApp As Object
Dim Data As Range
Dim Records As Integer, i As Integer
Dim Region As String, Surname As String
Dim Remediation As String, Inte As String, Ta As String, TotalRem As String, Pay As String
Dim SaveAsName As String
Then eventually...
'Cycle through all records in Sheet2
Records = Application.CountA(Sheets("Sheet2").Range("A:A"))
For i = 1 To Records
' Update status bar progress message
Application.StatusBar = "Processing Record " & i
' Assign current data to variables
Region = Data.Cells(i, 1).Value
Surname = Data.Cells(i, 2).Value
Remediation = Data.Cells(i, 3).Value
Inte = Data.Cells(i, 4).Value
Ta = Data.Cells(i, 5).Value
TotalRem = Data.Cells(i, 6).Value
Pay = Data.Cells(i, 7).Value