creating html pages from excel

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
allthenames
Newbie
Posts: 18
Joined: Wed Aug 18, 2010 5:51 pm

creating html pages from excel

Post by allthenames » Sun Nov 20, 2011 12:05 pm

Hi, I just need a simple script that can create a filename and path based on a directory. For example

CreateDir>C:\Users\Ben's Asus\Documents\%cell%\%cell%.txt

with "cell" being the variable to save to.

Here is my full script for reference.




Let>k=1
Label>start
let>ret=test
setfocus>Excel*
dderequest>Excel,C:\Program Files\screen-scraper basic edition\water.xlsx,R%k%C1,cell,10
StringReplace>cell,SPACE,,cell
MessageModal>%cell%
WriteLn>C:\Users\Ben's Asus\Documents\%cell%.html,result,%cell%%TITLE%
If>k>3,finish
Let>k=k+1
Goto>start
Label>finish


It is reading the column cells one by one creating simple html pages for each line.

any help is appreciated. Thanks
-Ben

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

Post by Marcus Tettmar » Fri Dec 16, 2011 3:11 pm

Just going back through posts that didn't get an answer. Are you still looking for an answer on this? Looks to me like you've answered it yourself. You can use CreateDir as you have. To create a file, depends what kind of file it is. Just use WriteLn to create a text file.
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
Sign up to our newsletter for free automation tips, tricks & discounts