D
David Holland
Hi
I am opening another XLS file, copying some data from that file, but when I
go to close it, I can't. I think it is just looking for the Workbook Name to
close it
Problem is that I don't know how to find the workgroup name. Belwo is some
of waht I am using
fileToOpen = Application.GetOpenFilename("XLS Files (*.xls), *.xls")
If fileToOpen = False Then
yesno = MsgBox("The file is invalid ... Do you want to try
again ?", vbYesNo + vbCritical, "Caution")
Select Case yesno
Case vbYes
GoTo cont
Case vbNo
GoTo theend
End Select
Do some stuff with the file
Windows(fileToOpen).Activate
ActiveWindow.Close
The above two lines is the real problem
Thanks for reading & even more thanks if you can help.
Regards David
I am opening another XLS file, copying some data from that file, but when I
go to close it, I can't. I think it is just looking for the Workbook Name to
close it
Problem is that I don't know how to find the workgroup name. Belwo is some
of waht I am using
fileToOpen = Application.GetOpenFilename("XLS Files (*.xls), *.xls")
If fileToOpen = False Then
yesno = MsgBox("The file is invalid ... Do you want to try
again ?", vbYesNo + vbCritical, "Caution")
Select Case yesno
Case vbYes
GoTo cont
Case vbNo
GoTo theend
End Select
Do some stuff with the file
Windows(fileToOpen).Activate
ActiveWindow.Close
The above two lines is the real problem
Thanks for reading & even more thanks if you can help.
Regards David