Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. matt198992

    Microsoft Word Macro help

    Here is the completed and finalized code to search folders and subfolders and run a macro on every doc, docx, or docm files that it finds. Sub Recursion() 'enter your root file path here that you want to run this on. LEAVE THE BACKSLASH \ AT THE END Recurrer "C:\Documents and...
  2. matt198992

    Microsoft Word Macro help

    O.M.G. Finally! After all this time, it works! Tony, if you were next to me, I would give you a friggen hug man. Thanks SOOOOOOOO much for sticking with me and not giving up on me. You have no idea how much this helps!!!! I really cannot thank you enough!!
  3. matt198992

    Microsoft Word Macro help

    Sub Recursion() Recurrer "C:\Documents and Settings\mmillar\Desktop\test\" End Sub Sub Recurrer(Path As String) Dim DirN As String Dim DirList() As String Dim ndx As Long Dim pos As Long ' added ' Add vbSystem, vbHidden, etc., if you want...
  4. matt198992

    Microsoft Word Macro help

    'deleteme' is just a simple find and replace macro. So this part of the code should be: Documents.Open filename:=Path & DirN Application.Run MacroName:="Normal.NewMacros.deleteme" ActiveDocument.Save ActiveWindow.Close Path & DirN = Dir ???
  5. matt198992

    Microsoft Word Macro help

    Sub Recursion() Recurrer "C:\Documents and Settings\mmillar\Desktop\test\" End Sub Sub Recurrer(Path As String) Dim DirN As String Dim DirList() As String Dim ndx As Long Dim pos As Long ' added ' Add vbSystem, vbHidden, etc., if you want...
  6. matt198992

    Microsoft Word Macro help

    Sub Recursion() Recurrer "C:\Documents and Settings\mmillar\Desktop\test\" End Sub Sub Recurrer(Path As String) Dim DirN As String Dim DirList() As String Dim ndx As Long ' Dim theFileName As String ' Add vbSystem, vbHidden, etc., if you want such...
  7. matt198992

    Microsoft Word Macro help

    Sub Recursion() Recurrer "C:\Documents and Settings\mmillar\Desktop\test\" End Sub Sub Recurrer(Path As String) Dim DirN As String Dim DirList() As String Dim ndx As Long ' Dim theFileName As String ' Add vbSystem, vbHidden, etc., if you want such...
  8. matt198992

    Microsoft Word Macro help

    It doesn't work, I'm sorry. That either runs the macro on only the specified file opened, or if I tell it to loop through folders using my previously posted macro, it still will only effect the root folder, and not the subdirectories. That or it gives me an error message about the "DirN = Dir"...
  9. matt198992

    Microsoft Word Macro help

    I know there is a way to search subfolders, i just cant get it to work... can ANYONE help?
  10. matt198992

    Microsoft Word Macro help

    can anyone help me with a microsoft word macro? i am trying to create a macro that runs a second macro across multiple files and subfolders. I got half of it down, to the point where i can execute the macro to all files in a single folder, however cannot get it to search subfolders. here is what...

Part and Inventory Search

Back
Top