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.
|ASP.NET VB code for check and insert in a table||4||45|
|Combining match and vlookup???||4||29|
|Day Count issue - Days360?||12||26|
|Excel 2016 error engine does not recognize 'field name' as a valid field name or expression||8||25|
Join the community of 500,000 technology professionals and ask your questions.