Exportaqr datos de excel a otro programa

rodhero

New Member
Joined
Apr 3, 2013
Messages
2
Hola y gracias por leer, pues tengo el siguiente problema soy novato en excel y en macros por lo que no puedo realizar nada realmente complicado, en estos momentos necesito una macro que pueda exportar los datos que tengo en una hoja de excel para llenar un formato en otro programa llamado POD, investigando me tope con la funcion sendkeys, aun no se si esa sea la solución o exista otra manera.
Mis datos son 3

Fecha Documento y folio
Con estos datos debo llenar el formulario del otro programa
Mi idea hasta ahora es esta
Sub prueba1()'
' prueba1 Macro
'


'
Range("A2").Select
Selection.Copy (Copiar el dato que requiero)
AppActivate ("POD ")(Abrir el progrma)
Range("pod").Select (Aquí necesito selecionar mi casilla)
ActiveSheet.Paste (Pegar esto en el programa)
y continuar con 3 diferentes casillas mas y repetir

End Sub
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hace mucho había un programa que hacia exactamente eso, se llamaba Outsidein, era fantastico, dejame ver un poco a ver si con esas funciones podes hacer lo que querés, después que investigue escribo mas
Saludos
Sergio
 
Upvote 0
Esta macro funciona y usa los conceptos que indicaste en tu pregunta
Code:
Sub test01()
    Range("A2").Select
    Selection.Copy
    ReturnValue = Shell("notepad.EXE", 1)        ' Run notepad.
    AppActivate ReturnValue                      ' Activate notepad
    Application.Wait Now + TimeValue("00:00:02") ' Esperar
    SendKeys ("^v")                              ' Pegar


End Sub
Saludos
Sergio
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,017
Members
449,414
Latest member
sameri

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top