NNKL.COM
welcome to my space
X
Search:  
 HOME   Copying Macro to Many Documents
Copying Macro to Many Documents
Published by: cfz 2009-01-08
Welcome to:nnkl.com

  • Macro Express News - June 18, 2004::
    Whenever the macro file is saved, a copy of the macro file is kept in the need to write a macro that needs to know the location of the My Documents folder?
    http://www.macros.com/newsletters/MENewsJun2004.htm
    HOME
    I have a macro in my template that I want to copy to several hundred documents. Is there a quicker way to do this than using the macro organizer? I'm using Word 2003. Thanks


  • This site http://www.cpearson.com/excel/vbe.htm might be helpful.
    Macro viruses unmasked - Penn Printout, April 1997::
    Previously, many viruses were created using lower level system code to infect a document is created using a copy of Microsoft Word that has a macro virus
    http://www.upenn.edu/computing/printout/archive/v13/8/macro.html
    HOME
    Auto-logon Tab - Macro Expert Manual::
    An automation tool is designed to complete the repetitive and routine tasks for you, it not only can do whatever you can do, but also it can reduce many operation
    http://www.macro-expert.com/macro-manual/options-logon.htm
    HOME

    By changing ThisWorkbook to ActiveDocument this code works for Word.

    Sub AddModule()
    Dim VBComp As VBComponent
    Set VBComp = ActiveDocument.VBProject.VBComponents.Add(vbext_ct _StdModule)
    VBComp.Name = "NewModule"
    Application.Visible = True
    End Sub


    Sub AddProcedure()

    Dim VBCodeMod As CodeModule
    Dim LineNum As Long

    Set VBCodeMod = ActiveDocument.VBProject.VBComponents("NewModule").CodeModule
    With VBCodeMod
    LineNum = .CountOfLines + 1
    .InsertLines LineNum, _
    "Sub MyNewProcedure()" & Chr(13) & _
    " Msgbox ""Here is the new procedure"" " & Chr(13) & _
    "End Sub"
    End With

    Application.Run "MyNewProcedure"

    End Sub





  • I Am a Sinner – What About You?
    Global Sourcing and Supplier Online by Dylan

    You are looking at:nnkl.com's Copying Macro to Many Documents, click nnkl.com to home
  • fighting
  • any tai chi chuan pics
  • neat article on the deerhorn knives
  • colombus mpegs
  • sash rankings
  • who has the best tcc suits
  • hsing i bagua
  • any taichi form clips
  • the definition of fa jing
  • solo practice
  • striking a tree
  • ima can you tell
  • pakua new york school
  • death touch
  •  
  • attn fu pow
  • screwed
  • baji piqua
  • why isn t can t a boxers jab cross be considered internal
  • would anyone study tai chi pa kua hsing i with this school instructor
  • lin kong jing
  • bruises
  • old style yang videos
  • chen man ching style in china
  • mind intent yi and fa jing
  • linkongjin
  • do you know this
  • the tao of tae bo
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 nnkl.com        Site made:CFZ