We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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.