L
Lisa
Is there a way to email a protected word document through a vb macro.
Currently I have the macro below, but the user actually has to Ctrl / V to
paste the appropriate adress. I am using Word 2002 and Outlook 2000
WordBasic.ToolsUnprotectDocument DocumentPassword:="procedures"
WordBasic.EditBookmark Name:="date", SortBy:=0, GoTo:=1
WordBasic.CharLeft 1
WordBasic.CharRight 2
WordBasic.CharRight 9, 1
WordBasic.EditCopy
WordBasic.EditBookmark Name:="date", SortBy:=0, GoTo:=1
WordBasic.EditClear
WordBasic.EditBookmark Name:="date", SortBy:=0, Add:=1
WordBasic.EditPaste
WordBasic.EditBookmark Name:="Email", SortBy:=0, GoTo:=1
WordBasic.EditCopy
WordBasic.ToolsProtectDocument DocumentPassword:="procedures", NoReset:=1,
Type:=2
Button = WordBasic.MsgBox("This work order will be emailed to Policy
Services for processing. To complete the process hit OK and you will receive
your Outlook message hit Ctrl/V And it will paste the correct email address
for you. ", 0)
ActiveDocument.SendMail
Any assistance to make this process easier would be great. Thanks.
Currently I have the macro below, but the user actually has to Ctrl / V to
paste the appropriate adress. I am using Word 2002 and Outlook 2000
WordBasic.ToolsUnprotectDocument DocumentPassword:="procedures"
WordBasic.EditBookmark Name:="date", SortBy:=0, GoTo:=1
WordBasic.CharLeft 1
WordBasic.CharRight 2
WordBasic.CharRight 9, 1
WordBasic.EditCopy
WordBasic.EditBookmark Name:="date", SortBy:=0, GoTo:=1
WordBasic.EditClear
WordBasic.EditBookmark Name:="date", SortBy:=0, Add:=1
WordBasic.EditPaste
WordBasic.EditBookmark Name:="Email", SortBy:=0, GoTo:=1
WordBasic.EditCopy
WordBasic.ToolsProtectDocument DocumentPassword:="procedures", NoReset:=1,
Type:=2
Button = WordBasic.MsgBox("This work order will be emailed to Policy
Services for processing. To complete the process hit OK and you will receive
your Outlook message hit Ctrl/V And it will paste the correct email address
for you. ", 0)
ActiveDocument.SendMail
Any assistance to make this process easier would be great. Thanks.