Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

al cerrar libros quedan ventanas vacias abiertas

publicado

hola  he creado un a aplicacion y en uno de los modulos abre y cierra otro libro de excel dependiendo los cambios que se le hagan  guarda y  cierra pero al terminar de usar la aplicacion quedan muchas ventanas vacias abiertas tantas como capturas o modificaciones que hice

 

 

 

este es mi codigo


Private Sub MultiPage2_Click(ByVal Index As Long)
If MultiPage2.Value = 0 Then
Application.Visible = False
Application.ScreenUpdating = False
Workbooks.Open Filename:=ThisWorkbook.Path & "\" & "server.xlsx"
Worksheets("MATERIALES").Activate
Worksheets("MATERIALES").AutoFilter.Sort.SortFields.Clear
Worksheets("MATERIALES").AutoFilter.Sort.SortFields.Add Key:= _
        Range("A1:A1000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption _
        :=xlSortTextAsNumbers
    With Worksheets("MATERIALES").AutoFilter.Sort
        .Header = xlYes
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
 
 Range("a1").Select
Set rngsource = Worksheets("MATERIALES").Range("a2:d1000")
With ListBox1
.List = rngsource.Cells.Value
End With
Windows("server.xlsx").Activate

ActiveWindow.Close savechanges:=False


Else
If MultiPage2.Value = 2 Then
Application.Visible = False
Application.ScreenUpdating = False
Workbooks.Open Filename:=ThisWorkbook.Path & "\" & "server.xlsx"
Worksheets("MATERIALES").Activate
Worksheets("MATERIALES").AutoFilter.Sort.SortFields.Clear
Worksheets("MATERIALES").AutoFilter.Sort.SortFields.Add Key:= _
        Range("A1:A1000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption _
        :=xlSortTextAsNumbers
    With Worksheets("MATERIALES").AutoFilter.Sort
        .Header = xlYes
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
 
 Range("a1").Select
Set rngsource = Worksheets("MATERIALES").Range("a2:d1000")
With ListBox2
.List = rngsource.Cells.Value
End With
Windows("server.xlsx").Activate

ActiveWindow.Close savechanges:=False

End If

End If

Application.Visible = False
Application.ScreenUpdating = True

End Sub

 

 

image.thumb.png.73205eb01c55751dcf0677d5fcab78bf.png

Featured Replies

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.