Hola de nuevo @Maria_a.rodriguez_m
A mi manera de ver tu código hace lo que necesitas, de lo contrario no entendí lo que necesitas.
Hice una pequeña modificación, ya que desde el formulario puedes ingresar los datos en ambas hojas para no tener
la necesidad de copiar.
Ya tienes hecho el código para el filtro, por lo que puedes repetirlo para ambas hojas y cambiar el orden en el que quieres
que se realice.
Espero sea de utilidad, Sigo atento.
->>
Private Sub Guardar_Click()
Dim fila As Long
Dim duplicados As Boolean
'Obtener la fila disponible
fila = Application.WorksheetFunction.CountA(Range("A:A")) + 1
duplicados = False
'Validar si se han ingresado datos duplicados
For i = 1 To fila
If Cells(i, 1).Value = UserForm1.TextBox1.Value Then
If Cells(i, 2).Value = UserForm1.TextBox2.Value Then
If Cells(i, 3).Value = UserForm1.TextBox3.Value Then
If Cells(i, 4).Value = UserForm1.ComboBox1.Value Then
If Cells(i, 5).Value = UserForm1.ComboBox2.Value Then
If Cells(i, 6).Value = UserForm1.TextBox4.Value Then
'Se encontraron datos duplicados
MsgBox "Datos duplicados en la fila " & i
duplicados = True
End If
End If
End If
End If
End If
End If
Next i
If Not duplicados Then
'Insertar datos capturados
With Sheets("Revision_TG")
.Cells(fila, 1).Value = UserForm1.TextBox1.Value
.Cells(fila, 2).Value = UserForm1.TextBox2.Value
.Cells(fila, 3).Value = UserForm1.TextBox3.Value
.Cells(fila, 4).Value = UserForm1.ComboBox1.Value
.Cells(fila, 5).Value = UserForm1.ComboBox2.Value
.Cells(fila, 6).Value = UserForm1.TextBox4.Value
End With
End If
'LLamar para ordenar datos
Call ordenar
'LLamar para CopiarCeldas
''Call CopiarCeldas
End Sub
<<--
-->>
Sub ordenar()
Dim rangoDatos As Range
Dim CampoOrden As Range
Dim UltimaFila As Long
UltimaFila = Sheets("Revision_TG").Range("A" & Rows.Count).End(xlUp).Row
Set rangoDatos = Range("A3:U" & UltimaFila)
Set CampoOrden = Range("A3")
rangoDatos.Sort key1:=CampoOrden, order1:=xlDescending, Header:=xlYes
UltimaFila = Sheets("TG_Aprobados").Range("A" & Rows.Count).End(xlUp).Row
Set rangoDatos = Range("A2:U" & UltimaFila)
Set CampoOrden = Range("A2")
rangoDatos.Sort key1:=CampoOrden, order1:=xlAscending, Header:=xlYes
End Sub
<<--