Here is how to do it with a word macro. File should be already saved.
In word click Tools -> Macro -> Record new macro
Do some stuff, then stop recording (Tools -> Macro -> Stop recording).
Then click Tools -> Macro -> Macros, select the macro and click Edit, this will open the VBA editor. Delete the code between Sub Macro1() and End Sub, and paste this code there (Sub Macro1() and End Sub must remain)
| Code |
|---|
tbPath = "C:\\Program Files\\The Bat!\\thebat.exe"
ActiveDocument.Save
a = ActiveDocument.FullName
tbCMD = "/MAILU=ACCOUNT;P=PASSWORD;F=Outbox;ATTACH=" & Chr(34) & a & Chr(34) & ";EDIT"
Shell Chr(34) & tbPath & Chr(34) & " " & tbCMD, vbNormalFocus
|
Modify tbPath to match the path to thebat.exe on your system.
In the line tbCMD = ..., replace ACCOUNT with the name of an account you have in theBat; Replace PASSWORD with the password for that account, or if there is no password, remove "P=PASSWORD;"
Save macro and close VBA editor.
You can assign a keyboard shortcut or a toolbar button to quickly execute the macro.
Result should be a new empty message with the currently edited .doc file attached. You can customize it to do exactly what you need.