I begin in VBA and for my job, I have to analyse excel sheets and export my resume to .txt file.
I was able to create the name of my saving file ("NomFichier") - Yes, it's french ;) - and Also my path by choosing the emplacement of the saving file ("Emplacement")
During my analyse, i stock my values into a string ("Hor (30)")
I am now searching ways to export the values of the string to .txt file using the path and name of the file...Can somebody help me ?
Here is my code for the name of the file and the finding path processus :
'Nom du tableau deviens nom du fichier .txt
'Name of the file to be save
Dim NomFichier As String
NomFichier = Tableau_X & "_" & Titre
'Emplacement du fichier txt à enregistrer
'Location of the file to be save
Dim Emplacement As String
Dim diaFolder As FileDialog
Set diaFolder = Application.FileDialog(msoFileDialogFolderPicker)
diaFolder.AllowMultiSelect = False
diaFolder.Show
Emplacement = diaFolder.SelectedItems(1)
Set diaFolder = Nothing
"..."