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?
Send file name
Moderators: Dorian (MJT support), JRL
Re: Send file name
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.
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.