View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Param
 
Posts: n/a
Default Macro shortcut key & security

this are the command I used:
running by using keyboard (ctrl+M)
--------------------------------------------------
Sub printreport()
'
' printreport Macro
' Macro recorded 4/1/2006 by param
'
With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=False
End With
End Sub
-----------------------------------------------

"Param" wrote:

I have create macro command at work place. I use shortcut key (CTRL+M) to
perform the task. Save it into the doc file. Problem: macro command not
working when I press Ctrl+M at my home pc. But I check the macro, still
inside the document. Why cannot run it, because keyboard?

to enable macro, I should set security to low? must? any other way, because
worried about virus attack.

TQ
param