Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 1004 close method of windows class failed

Status
Not open for further replies.

LMichel

IS-IT--Management
Apr 2, 2001
85
BE
The following Excel 97 macro fails on some (older) computer

ActiveSheet.Paste
Range("A1").Select
ActiveWorkbook.Save
MsgBox "Le nom de la fenetre = " & ActiveWindow.Caption
'Workbooks("récapitulatif.xls").Close SaveChanges:=True
'Application.Windows(2).Close
'Application.Windows("récapitulatif.xls").Close
ActiveWindow.Close
Selection.ClearContents
Range("A1").Select
ActiveWindow.SelectedSheets.Visible = False
Sheets("pointage").Select

What do I nedd to update to have this code working on every machine ?

Os is windows NT.

Thanks for your help !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top