PDA

View Full Version : Running a macro



Hamuda
02-27-2006, 01:26 AM
I've been trying to implement this module, but I can't get it to work.
After I set it all up, I try to run it, but the code just ignores me.
What am I doing wrong?

http://vbaexpress.com/kb/getarticle.php?kb_id=76

Process All Documents in a Specified Directory Folder Including Subfolders

geekgirlau
02-27-2006, 01:43 AM
What is your "DoWork" macro doing?

The last procedure needs you to put some commands in it. As a test, you could try changing it to the following:





Sub DoWork(wdDoc As Document)



MsgBox "Do something to " & wdDoc.Name


End Sub

Hamuda
02-27-2006, 05:07 AM
Thanks alot for your help, I got it to work just like I need it to :)

geekgirlau
02-27-2006, 10:10 PM
No problem - I've marked your thread as "Solved". In future, you can do this by selecting "Thread Tools" at the top of the page.