Mick
Thank you for taking the time to reply.
Its just things that apparently work don't! I have copied some code diligently and got errors. So I tried to modify it and failed miserably, so I have posted it below c/w all mistakes
Here's the initialise code (incorrect)
Private Sub UserForm_Initialize()
Dim currentrow As Long
Dim strSheetName As String
'strSheetName = ActiveSheet.Name
Dim iRow1 As Long
Dim iRow2 As Long
Dim r As Worksheet, WS2 As Worksheet
Set r = Worksheets("Courses")
Set WS2 = Worksheets("Sessions")
currentrow = ActiveCell.Row
'UserForm = vbModeless
'*************************************
'Scroll bars Vertical and Horizontal
With SBColumns
.Min = 1
.Max = 256
.Value = ActiveWindow.ScrollColumn
.LargeChange = 25
.SmallChange = 1
End With
With SBRows
.Min = 1
.Max = 65536
.Value = ActiveWindow.ScrollRow
.LargeChange = 25
.SmallChange = 1
End With
'*********************************
Dim NameFound As Range
'fPath = r.ThisWorkbook.Path & "\"
'Worksheets("Courses").Activate
If Me.MultiPage1.Value = 0 Then Worksheets("Courses").Activate
If Me.MultiPage1.Value = 1 Then Worksheets("Bookings").Activate
If Me.MultiPage1.Value = 2 Then Worksheets("Customers").Activate
If Me.MultiPage1.Value = 3 Then Worksheets("Tutors").Activate
Me.txtCourse.SetFocus
txtiardRef.Value = r.Cells(currentrow, 1).Value
txtCourse.Text = r.Cells(currentrow, 2).Value
cboTutor.Text = r.Cells(currentrow, 3).Value
txtSessions.Value = r.Cells(currentrow, 4).Value
txtStartDate.Value = r.Cells(currentrow, 5).Value
txtEndDate.Value = r.Cells(currentrow, 6).Value
txtPlaces.Value = r.Cells(currentrow, 7).Value
End Sub
And a Next button.............
Private Sub cmdNext_Click()
Dim currentrow As Long
Dim r As Worksheet, WS2 As Worksheet
Set r = Worksheets("Courses")
Set WS2 = Worksheets("Sessions")
'ActiveSheet.UsedRange
'ActiveSheet.Row.Select
'Set r = ActiveSheet.UsedRange
currentrow = ActiveCell.Row
'This is the data entered value
txtiardRef.Value = r.Cells(currentrow, 1).Value
txtCourse.Text = r.Cells(currentrow, 2).Value
cboTutor.Text = r.Cells(currentrow, 3).Value
txtSessions.Value = r.Cells(currentrow, 4).Value
txtStartDate.Value = r.Cells(currentrow, 5).Value
txtEndDate.Value = r.Cells(currentrow, 6).Value
txtPlaces.Value = r.Cells(currentrow, 7).Value
If currentrow = Range("A65536").End(xlUp).Row Then GoTo LastRec
currentrow = currentrow + 1
'This is the data entry
txtiardRef.Text = r.Cells(currentrow, 1).Value
'txtSessions = r.Cells(currentrow, 1).Value
txtCourse.Text = r.Cells(currentrow, 2).Value
cboTutor.Value = r.Cells(currentrow, 3).Value
txtSessions.Value = r.Cells(currentrow, 4).Value
txtStartDate.Value = r.Cells(currentrow, 5).Value
txtEndDate.Value = r.Cells(currentrow, 6).Value
txtPlaces.Value = r.Cells(currentrow, 7).Value
Exit Sub
LastRec:
MsgBox "You're at the last record!"
End Sub
Would you like the workbook?
Vern