![]() |
Macro to copy to application
Hi
I want to create a macro which will copy data in cell from excel to another application. I need to macro to run through column A copy the first cell (A1), and paste it an external application, The go to B2 in excel copy and paste in application and do the same until it reaches a blank cell and the macro stops. I have the basic concept to work the sendkeys with the application, but Im stuck how to loop in excel and proceed down the columns until it reaches a blank cell. Any Suggestions? Code:
Sub copy() |
If I do it in a loop would it work??
Do While Not IsEmpty(ActiveCell.Offset(0, 1)) ActiveCell.Selection.Copy ActiveCell.Offset(1, 0).Select 'Activate Application AppActivate "appname" Delay 1 SendKeys "{HOME}{TAB 7}", True 'EP=Edit Paste SendKeys "%(EP)", True SendKeys "{F2}", True Loop End Sub |
Got it working, hope it helps others.
Quote:
|
Quote:
I have a similar need as yours. I need a macro to copy text in cell A1 and paste it on certain tab ( Email Address ) in another application. I have searched the net and you seem to the only one to have got any closer to solving it. I am a novice and dont have knowledge of VBA. Any help for creating such a macro would greatly be appreciated. Best Wishes, Anwaar |
All times are GMT +1. The time now is 04:21 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com