这里是#039;下面是一些如何从Autocad中执行此操作的方法 ;从excel、access、word、whathaveya中可以看到几乎完全相同的内容
- Sub test()
- Dim objOL As New Outlook.Application
- Dim objMail As MailItem
- Set objOL = New Outlook.Application
- Set objMail = objOL.CreateItem(olMailItem)
- With objMail
- .To = "EstimatorPerson@KheilmannsHizzouse.com"
- .Subject = "You're falling down on your end, dude!"
- .Body = "Hey Loserboy, The awesomeness that is AutoCAD noticed that you STILL " & _
- "haven't done the estimating based on the Drawing: " & _
- ThisDrawing.GetVariable("dwgname") & ". Don't make me come down " & _
- "there and slap you around again." & vbCrLf & vbCrLf & _
- "By the way, say hi to your wife and my kids."
- .Display
- .Send
- End With
- Set objMail = Nothing
- Set objOL = Nothing
- End Sub
|