i have a code "copyMultFiles" Move many value in many file to single file My Problem is caot use parameter in "Const"
Error this Line " Const csMyPath As String = vaFiles1 " vaFiles1 is get source folder i caot input in csMypath
'get source folder
Dim diaFolder As FileDialog
Dim vaFiles1 As String
' Open the file dialog
Set diaFolder = Application.FileDialog(msoFileDialogFolderPicker)
diaFolder.AllowMultiSelect = False
diaFolder.Show
'MsgBox diaFolder.SelectedItems(1)
vaFiles1 = diaFolder.SelectedItems(1)
' change these to suit requirements
Const csMyPath As String = vaFiles1
Const csMyFile As String = "*.xls" 'source search patte
Const csSRng As String = "$B$5,$G$36,$I$36,$G$37,$I$37" 'source range
Const csTRng As String = "$A$1" 'target range
برچسب:
نویسنده: استخدام کار