Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT
Sub FileDiag() Dim strFileSelected As String Dim objOfficeDialog As Object Dim wbDestination As Workbook Dim wbSource As Workbook Dim sh As Worksheet Dim res As String Application.DisplayAlerts = False Application.EnableEvents = False Application.ScreenUpdating = False Set objOfficeDialog = Application.FileDialog(msoFileDialogFilePicker) Set wbDestination = ActiveWorkbook Application.FileDialog(msoFileDialogFolderPicker _ ).InitialFileName = "C:\Temp\*.*" ' res = "Q:\Debt\Inputs\" & Format(Date, "yyyy") & "\" & Format(Date, "yyyy") & Format(DateAdd("m", -1, Date), "mm") & "\Reporting" 'Debug.Print res With objOfficeDialog ' .Title = "Select the Project Cost Allocation file" ' .AllowMultiSelect = False '.InitialFileName = res .Show End With Application.DisplayAlerts = True Application.EnableEvents = True Application.ScreenUpdating = True Exit Sub End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.