import extracted text to excel

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
jeanmarie
Newbie
Posts: 6
Joined: Thu Jan 08, 2009 1:58 pm

import extracted text to excel

Post by jeanmarie » Thu Jan 08, 2009 2:18 pm

how do I copy the extracted text with a tag macro of webrecorder to a excel cell?

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jan 08, 2009 3:45 pm

There are a number of ways you can output to Excel:

1. Setfocus and paste it (send CTRL-v)
2. Use DDERequest
3. Use VBScript
4. Write to a CSV file using WriteLn

There are sample macros which demonstrate items 2 and 3. Also read this:
http://www.mjtnet.com/blog/2007/07/02/m ... xcel-data/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

jeanmarie
Newbie
Posts: 6
Joined: Thu Jan 08, 2009 1:58 pm

Post by jeanmarie » Fri Jan 09, 2009 12:42 pm

thank you for the tips

I am using on of the option to read excel... but the following command:

VBRun>OpenExcelFile,"C:\CEF\T_Isin.xls"

is not finding the T_Isin file on C:\CEF

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jan 09, 2009 12:44 pm

Remove the quotes. VBRun accepts Macro Scheduler string values. So you should not use quotes in VBRun.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts