Hi,
I have a table with rft formatted memo fields OK.
All the forms & text boxes are RTF.
I lookup text in a table, copy via VBA and paste manually using ctrl v.
However the pasted test I guess is copied inc. all the html formatting /div <br> etc.
I assume I need to ClipBoard_SetText with rtf formatting intact.
I can't see how to do this, there is plenty of examples where it is taken from text boxes with...
Dim str AsString = RichTextBox1.SelectedRtf
Clipboard.SetText(str, TextDataFormat.Rtf)
but not from a string itself or in my case a dlookup.
AddNote = DLookup("[Start]", "eResponses", "[ID] = " & Me!eResponseCombo & "")
ClipBoard_SetText (AddNote)
' Clipboard.SetText(AddNote, TextDataFormat.Rtf) - not work as lots of other things I have tried.
I guess I could copy to a textbox but seems an unecessary step.
Any advise
thanks I/a
I have a table with rft formatted memo fields OK.
All the forms & text boxes are RTF.
I lookup text in a table, copy via VBA and paste manually using ctrl v.
However the pasted test I guess is copied inc. all the html formatting /div <br> etc.
I assume I need to ClipBoard_SetText with rtf formatting intact.
I can't see how to do this, there is plenty of examples where it is taken from text boxes with...
Dim str AsString = RichTextBox1.SelectedRtf
Clipboard.SetText(str, TextDataFormat.Rtf)
but not from a string itself or in my case a dlookup.
AddNote = DLookup("[Start]", "eResponses", "[ID] = " & Me!eResponseCombo & "")
ClipBoard_SetText (AddNote)
' Clipboard.SetText(AddNote, TextDataFormat.Rtf) - not work as lots of other things I have tried.
I guess I could copy to a textbox but seems an unecessary step.
Any advise
thanks I/a