I'm writing a microsoft word macro and having difficulty with vb.net. Please help.
views:
58answers:
2
+1
A:
A Word Macro is usually written in VBA rather than VB.Net, I'm assuming that you meant VBA?
Use the FileSystemObject
to access the filesystem and then use recursion to "walk" down. Here's a sample:
If it's actually VB.Net you're using, the idea will be the same but use System.IO.Directory
rather than the FileSystemObject
.
ho1
2010-04-26 13:51:24
It's VBA indeed. Thank you 'ho'.
Nam Gi VU
2010-04-26 16:05:31