trprasad78
Member
hope all doing great
I need small correction in following vba code.
currently i mention the folder path in macro to run instead it has to ask me to choose path (pop up window to select the folder)
please modify the following code
Thank you
I need small correction in following vba code.
currently i mention the folder path in macro to run instead it has to ask me to choose path (pop up window to select the folder)
please modify the following code
Thank you
Code:
Option Explicit
Dim fso As Object
Sub CopytoMasterFile()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.AskToUpdateLinks = False
Dim folderpath$: folderpath = "G:\Jan'17\"
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FolderExists(folderpath) Then Call OpenFileandCopy(folderpath)
Set fso = Nothing
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Application.AskToUpdateLinks = True
End Sub