Using Textpad from Excel

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
colandy
Posts: 1
Joined: Thu Sep 24, 2009 8:53 pm
Location: Cardiff

Using Textpad from Excel

Post by colandy »

Hi all,

I need to open a textpad document from within Excel and send commands to textpad from excel once open. Basically I have a txt document and I need to runa textpad macro then close textpad, all from within Excel.

I was trying to use shell to open Textpad and the document in question, which is fine and then the SendKeys command from Excel to run the Macro via shortcut keys using Sendkeys and then close textpad again usinf sendkeys, all from excel.

I am experiencing issue using the Sendkeys as Textpad appears to ignore most keys and I certainly can't close the app.

Anyone have any suggestions or an alternate method ?

Thanks in advance
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I use Macro Scheduler for tasks like that. The macros in Macro Scheduler can call a TextPad macro or perform the TextPad keystrokes itself. And the macros can be edited.

Info available here: http://www.mjtnet.com/macro_scheduler_pro.htm

TextPad and Macro Scheduler are my two "cannot live without" tools.
Hope this was helpful.............good luck,
Bob
Post Reply