VBA MS-WORD Trouble with sendkeys
问题 I'm having some issue with this code Private Sub CortarSobrantes() 'Procedimiento que llama al comando "Comprimir imágenes" con parámetros With Application.CommandBars.FindControl(ID:=6382) SendKeys "%T%n%C{ENTER}", False ' Las letras equivalen a los accesos de teclado en la ventana, ~ para ejecucion .Execute End With End Sub If I hit Run (F5) inside the project, it runs OK, but when I try to call it from a button shortcut it doesn't catch the sendkeys. This also happens if I try to run it