The following VB code works perfectly. When notepad opens the text document displays the…
Jump to turn (9)
- 1The following VB code works perfectly. When notepad opens the text document disp
- 2In my sheet 'QUOTES' when I doubleclick on a cell value in column A2 downwards I
- 3how do I stop the action of double click from going into edit mode
- 4When I double Click in column A, nothing happens. All the cells in column A have
- 5Ensure that the ListBox in column A has a named range associated with it. How so
- 6The list box was creted through Data Validation. I am unable to get the properti
- 7If I chabged my double click column to E will the code still select the row from
- 8When I double click in column E the row range A to G is not copied to the next a
- 9Can you correct this VBA code so that it copies the range one at a time but they
- User
The following VB code works perfectly. When notepad opens the text document displays the following information:
'filelist.txt'
'Names of all files in the folder 'z Quotes On Hold''.
Is it possible to dispaly the information in this manner:
'filelist.txt'
"Please Remember to move Quotes sent to Finance into the Contractors Folder"
'Names of all files in the folder 'z Quotes On Hold''.
Sub ListFilesInNotepad() Dim wsh As Object Set wsh = CreateObject("WScript.Shell")
Dim folderPath As String folderPath = ThisWorkbook.Path & "\z Quotes On Hold"
Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject")
Dim file As Object Set files = fso.GetFolder(folderPath).files
' Create a new text file (replace "filelist.txt" with your desired filename) Dim outputFile As Object Set outputFile = fso.CreateTextFile(folderPath & "\filelist.txt", True)
For Each file In files ' Write filename with two newlines outputFile.WriteLine file.Name & vbCrLf & vbCrLf Next file
Call OpenTextFileInNotepad