B
Bjørn Tore Hovda
Hi, I have this problem here.
i have made a macro( test888 ) who merge data from excel. now im planning to
use this macro in another macro (shown under)
you see i have severale files that i want to update with my macro, so i
thought that i could just list them up like i did under.
somehow the second file dosent start. the update is just done on the first
file.
how can i update severale files in a sequence?
Private Sub CommandButton2_Click()
Dim Dato As String
Dato = UCase(Format(TextBox1.Text, "ddmmmyy"))
FileOpen Name:="\\svg-usr\HOVDABT$\My Documents\B-11.mpp", ReadOnly:=False,
FormatID:="MSProject.MPP"
test888 (Dato)
MsgBox ("1")
FileClose
FileOpen Name:="\\svg-usr\HOVDABT$\My Documents\EKOA.mpp", ReadOnly:=False,
FormatID:="MSProject.MPP"
test888 (Dato)
MsgBox ("2")
FileClose
End Sub
Mvh Bjørn Tore Hovda
i have made a macro( test888 ) who merge data from excel. now im planning to
use this macro in another macro (shown under)
you see i have severale files that i want to update with my macro, so i
thought that i could just list them up like i did under.
somehow the second file dosent start. the update is just done on the first
file.
how can i update severale files in a sequence?
Private Sub CommandButton2_Click()
Dim Dato As String
Dato = UCase(Format(TextBox1.Text, "ddmmmyy"))
FileOpen Name:="\\svg-usr\HOVDABT$\My Documents\B-11.mpp", ReadOnly:=False,
FormatID:="MSProject.MPP"
test888 (Dato)
MsgBox ("1")
FileClose
FileOpen Name:="\\svg-usr\HOVDABT$\My Documents\EKOA.mpp", ReadOnly:=False,
FormatID:="MSProject.MPP"
test888 (Dato)
MsgBox ("2")
FileClose
End Sub
Mvh Bjørn Tore Hovda