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.

Application.SendKeys (">=") + calendar.value

publicado

buenas, tengo un filtro que me funciona muy bien, pero tengo una pega, quiero insertar la fecha mediente un calendario que tengo en un userform no tengo problemas para insertar la fecha, pero el filtro no funciona pues como que parece que se vuela esta linea:

Application.SendKeys (">=")[/CODE]

para llamar al calendario uso esto

[CODE]ElseIf Quien = 6 Then
Range("C8") = Calendar.Value
Range("C2") = Calendar.Value[/CODE]

este es el codigo del filro

[CODE]Private Sub Worksheet_Change(ByVal Target As Range)

Z = Hoja2.Range("I500000").End(xlUp).Row
If Not Intersect(Target, Range("C2:E2")) Is Nothing Then

Hoja2.Range("A5:I" & Z).AdvancedFilter Action:=xlFilterCopy, CriteriaRange:= _
Range("C1:E2"), CopyToRange:=Range("A10:I10"), Unique:=False
End If

Range("E900000").Select
ActiveCell.End(xlUp).Select
ActiveCell.Offset(1, 0).Select

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Address(False, False) = "C2" Then
If Range("C2").Value = "" Then
Application.SendKeys (">=")
End If
End If

If Target.Address(False, False) = "D2" Then
If Range("D2").Value = "" Then
Application.SendKeys ("<=")
End If
End If

If Target.Address(False, False) = "C3" Then
Call Filtro_fechas("C2", ">")
End If

If Target.Address(False, False) = "D3" Then
Call Filtro_fechas("D2", "<")
End If[/CODE]

que me sugieren? se puede hacer?

Featured Replies

No hay posts para mostrar

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.