Hi Malcolm,
well I have 512 Mb RAM and it still hanging, .
Hi Anne,
well I dont have Open Office here to test it but I think the error must be at my code, so I am posting it here.
Sub Standard()
Application.DisplayAlerts = False
Application.ScreenUpdating = False
For Each Worksheet In Worksheets
If Worksheet.Name = "Standard" Then
strAlert = MsgBox("Voc? est? tentando importar os dados " _
& "para uma planilha que j? os cont?m. Isto far? com que os dados sejam " _
& "sobrescritos." & vbCrLf & vbCrLf & "Deseja mesmo fazer isto?", vbQuestion _
+ vbYesNo + vbDefaultButton2, "Importa??o Arriscada")
If strAlert = vbYes Then
strAlert2 = MsgBox("Tem certeza?", vbQuestion + vbYesNo + vbDefaultButton2, "Confirma??o")
If strAlert2 = vbNo Then
Exit Sub
Else
Sheets("Standard").Delete
End If
Else
Exit Sub
End If
End If
Next
Sheets.Add
Arq = Application.GetOpenFilename("Arquivo do Excel,*.xls")
PartArq = Split(Arq, "\", -1, vbTextCompare)
ItensArq = UBound(PartArq)
NomArq = PartArq(ItensArq)
Dim Janela As String, Janela2 As String
Janela = ActiveWindow.Caption
Workbooks.Open Filename:=Arq
Janela2 = ActiveWindow.Caption
Selection.AutoFilter
Range("D2").Select
Selection.RemoveSubtotal
Cells.Select
Selection.Copy
Windows(Janela).Activate
ActiveSheet.Paste
Range("A1").Select
Windows(Janela2).Activate
ActiveWindow.Close savechanges:=False
Range("A1").Select
ActiveSheet.Select
Nome = ActiveSheet.Name
Sheets(Nome).Name = "Standard"
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Oculta_Espera
End Sub
Hope someone can help me out here, .