Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Private Sub Form_Load()
Dim sPath As String
Dim sFile As String
Dim sOutput As String
RichTextBox1.Text = ""
sPath = "D:\Justin's Folder\RTFs\"
sFile = Dir(sPath & "*.rtf")
sOutput = "D:\Justin's Folder\Combined.rtf"
Show
Do While sFile <> ""
InsertFile sPath & sFile
sFile = Dir
RichTextBox1.Refresh
Loop
RichTextBox1.SaveFile sOutput
End Sub
Private Sub InsertFile(ByVal sFile As String)
Dim nFile As Integer
Dim sCont As String
sCont = Space$(FileLen(sFile))
nFile = FreeFile
Open sFile For Binary As nFile
Get nFile, , sCont
Close nFile
RichTextBox1.SelRTF = sCont
End Sub
Private Sub Form_Resize()
RichTextBox1.Move 0, 0, ScaleWidth, ScaleHeight
End Sub