fat controller
Slightly round the bend..
- Local time
- Today, 23:12
- Joined
- Apr 14, 2011
- Messages
- 758
OK, first the button code (note the second call is commented out for now)
Code:
Private Sub OK_Click()
Dim PerDate
PerDate = Me.cboDateSelect.Column(1)
If IsNull(cboDateSelect) Then
MsgBox "Oops! You need to select a period commencing date to continue", vbOKOnly, "Oops!...."
End If
Me.txtPerDate.Value = PerDate
FileCopy "SERVER-ADDRESS\4WeeklyMasterTemplate.xls", "SERVER-ADDRESS\4WeeklyMasterTemplate_" & Format(Now(), "ddmmyyyy") & ".xls"
Call SendToExcel("PayDirectControllers", "A2")
'Call SendToExcel("GSADirectExportQuery", "GSAInput")
End Sub