This is probably something simple, but I just can't figure it out and researched till crazy.
Code copies text from a mainframe session then appends the data to a rtf document that is created. The error where it is crashing is below.

Thank you!

Set host = CreateObject("BZWhll.WhllObj") 'set object to bluezone mf app
ResultCode = host.Connect("A")

strFile = "k:\" & "ScreenPrint" & Replace(Date, "/", "_") & "-" & Replace(Time, ":", "_") & ".rtf"
ifn = FreeFile
Open strFile For Append As ifn

host.Copy 32
ifn.Selection.Paste <<<<< ERROR: Object requred
Close ifn