Hi Guys, i am trying to use the replace function to find the Colon,
Keep everything before it, Add the date in my case NewWC then 2 line breaks then everything after that
So it should be something like
Good Morning all you guys the forum
We can offer you week commencing: (NewWC Goes Here)
If this works of for you
Please confirm this etc etc....
I think my sequence in the replace function wrong ????
I won't put the full code as its quite large
myrow is select case
NewText is String, NewWC is String, myLine is string "........."
Code:
Me.txtAddLine = DLookup("TextToAdd", "tblAddLine", "[ID] = " & myRow)
NewText = Me.txtAddLine
Me.txtReply = myGreet & vbNewLine & vbNewLine & _
NewText & vbNewLine & vbNewLine & myLine & vbNewLine & vbNewLine & Me.txtMailMessage
NewWC = Format(Me.txtFrom, "dddd-dd-mmm-yyyy")
myStr = Replace(NewText, ":", ": " & NewWC & vbNewLine & vbNewLine & myLine & vbNewLine & vbNewLine & Me.txtMailMessage)