M
maddy
Hell Everubody
I am silent member of this group. i have one query for u ..
I am developing a software using visual basic , This softwarte is for
applying macros to all word files in a folder..
I have completed all the macro functions and i am able to imply the
functions on only one file... But i am not able to apply to next files
.... but all the files in the folder opens without apllying the
functions
so can anyone provide me a soln for this
thanks in advance
Do While Len(sWkg)
If sAns(0) = "" Then
sAns(0) = sWkg
OpenWord (sWkg)
'MsgBox "first file"
Else
lCtr = UBound(sAns) + 1
ReDim Preserve sAns(lCtr) As String
'msgbox "second file "
sAns(lCtr) = sWkg
OpenWord (sAns(lCtr))
End If
sWkg = Dir
Loop
the above is the code where i open the files
I am silent member of this group. i have one query for u ..
I am developing a software using visual basic , This softwarte is for
applying macros to all word files in a folder..
I have completed all the macro functions and i am able to imply the
functions on only one file... But i am not able to apply to next files
.... but all the files in the folder opens without apllying the
functions
so can anyone provide me a soln for this
thanks in advance
Do While Len(sWkg)
If sAns(0) = "" Then
sAns(0) = sWkg
OpenWord (sWkg)
'MsgBox "first file"
Else
lCtr = UBound(sAns) + 1
ReDim Preserve sAns(lCtr) As String
'msgbox "second file "
sAns(lCtr) = sWkg
OpenWord (sAns(lCtr))
End If
sWkg = Dir
Loop
the above is the code where i open the files