Power BI | MS-SQL | DAX | Power Apps | Power Automate
Power BI | MS-SQL | ETL with SSIS | VBA | Python
Advanced Excel | MIS Reporting | Power Query
VB Programming | VBA | MS-Office Automation
Power BI | Power Pivot | Power Query | Basic DAX
Advanced Excel | MIS Reporting | Model Building
Sub Append_Text_Files()
Dim F1 As FileSystemObject
Dim F2 As FileSystemObject
Dim oTS As TextStream
Dim oTS1 As TextStream
Dim vTemp
Set F1 = New FileSystemObject
Set F2 = New FileSystemObject
For i1 = 1 To 50
Set oTS = F1.OpenTextFile(“c:\Sheet” ; i1 ; “.txt”, ForReading)
vTemp = oTS.ReadAll
Set oTS1 = F1.OpenTextFile(“c:\CombinedTemp.txt”,
ForAppending, True)
oTS1.Write (vTemp)
Next i1
End Sub
Explore comprehensive Excel VBA Macro Course here and, automate your routine Excel Reports, tasks and processes.
Happy Excelling
Team Excelgoodies
VBA & Python
New
Next Batches Now Live