Private Sub GetSet()
' Loads a new graphic into the Image control
On Error GoTo NoPic
Image1.Picture = LoadPicture(ThisWorkbook.Path & '\\id' & Format(SetNumber, '00') & '.gif')
Frame1.ScrollTop = 0
LabelSet.Caption = 'Set ' & SetNumber & ' of 12'
Repaint
Exit Sub
NoPic:
If Err = 53 Then
MsgBox 'Missing image file: ' & ThisWorkbook.Path & '\\id' & Format(SetNumber, '00') & '.gif'
LabelSet.Caption = 'Missing File'
Else
MsgBox 'Error ' & Err
End If
End Sub