Hello to everyone,

in a MS-Access 2010 application I have to send information with an email. I create this email with

Private Sub btnMail2_Click()
      Dim myMail As Outlook.MailItem
      Dim myOutlApp As Outlook.Application
    
      Set myOutlApp = New Outlook.Application
      Set myMail = myOutlApp.CreateItem(olMailItem)
    
      With myMail
        .To = Me!email
        .Subject = "Betreff"
        .Body = "Body"
        .Display
      End With
    
      Set myMail = Nothing
      Set myOutlApp = Nothing
    End Sub
Works fine!!! But I want to place the cursor to a certain line in the body text so that the user may easily insert additional information by himself.

I recorded an VBA-sequence (in German: Makro, I don't know the english expression for that) in MS-Word to find out how the cursor is controlled in Word. In Word
Selection.MoveDown Unit:=wdLine, Count:=4
moves the cursor down four lines.

But when I insert this code in my MS-Access application the debugger highlights wdLine and tells me that this variable is not declared.

How can I control the cursor in an MS-Outlook email, that was created by the code shown above?


Many thanks for any hints to solve this VBA problem,


Stefan