Send file name

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
gregpet
Newbie
Posts: 13
Joined: Wed May 22, 2013 8:11 pm

Send file name

Post by gregpet » Thu Mar 08, 2018 10:57 pm

I am creating a file name with some text and then the date:

Day>the_day
Month>the_month
Year>the_year
Let>op_account=op account %the_day%%the_month%%the_year%
let>OAC=C:\Users\GPetersen\Documents\2018\Bank Reports\%op_account%

Message box looks correct: C:\Users\GPetersen\Documents\2018\Bank Reports\op account 08032018

When I try to send that to a save as box with:
Sendtext>%OAC% I get %OAC% in the field
Sendtext>OAC gets me OAC

What am I doing wrong?

gregpet
Newbie
Posts: 13
Joined: Wed May 22, 2013 8:11 pm

Re: Send file name

Post by gregpet » Fri Mar 09, 2018 4:27 pm

Fixed, part of it was I was starting the macro after setting all the variables because I did not want to run the whole script. Therefore they were empty. After I moved the let command to just before where I started it worked with the %OAC%.

I removed them from that part and started the script from the beginning, it worked, Still not sure why when 1st running from the beginning it did not work.

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