Okay i can save the richtextbox text like so:
Private Sub DAYSHIFT()
Dim DAYSHIFT As String
Dim Filenum As Integer
Filenum = FreeFile
DAYSHIFT = "filename" & Format$(Now, "_dd_mm_yy.txt"
Open DAYSHIFT For Output As Filenum
Write #Filenum, RichTextBox1.Text, RichTextBox1.SelText
Close Filenum
End Sub
this works fine if i call this from a command button or the like. The problem is that when i call this from inside a timer1_timer sub , then i don't get any of the text saved.
Any Idea's..... #-)
Private Sub DAYSHIFT()
Dim DAYSHIFT As String
Dim Filenum As Integer
Filenum = FreeFile
DAYSHIFT = "filename" & Format$(Now, "_dd_mm_yy.txt"
Open DAYSHIFT For Output As Filenum
Write #Filenum, RichTextBox1.Text, RichTextBox1.SelText
Close Filenum
End Sub
this works fine if i call this from a command button or the like. The problem is that when i call this from inside a timer1_timer sub , then i don't get any of the text saved.
Any Idea's..... #-)