Private Sub cmdAttachGroupReport_Click()
On Error GoTo Error_Handler:
Dim lngCount As Long
Dim FPath As String
With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Show
' Display paths of each file selected
For lngCount = 1 To .SelectedItems.Count
FPath = .SelectedItems(1)
Next lngCount
'Check if file selected
If LCase(lngCount) = "false" Then Exit Sub
'Application.Goto Sheets("Exit_Reports").Range("B2")
'Insert file
ActiveSheet.OLEObjects.Add Filename:=FPath, Link:=False, DisplayAsIcon:=False
End With
Error_Handler: MsgBox "The system has encountered an error: " & Err.Description
End Sub