We are pulling variables out of an excel sheet and when we try and paste them (in a message modal, or to create a directory using the variables we've collected) it always adds a carriage return after each variable sent (see an example of our data below)
Here is the code where we paste the data:
Code: Select all
SRT>FolderCreator
SetFocus>Microsoft Excel - *
DDEREQUEST>Excel,%granfilepath%:data2,R1C3,piececount,10
wait>1
MessageModal> Press Okay to Continue on to Make %piececount% Folders
If>%piececount%>0
let>x=0
repeat>x
let>x=x+1
DDEREQUEST>Excel,%granfilepath%:Data2,R%x%C1,donkey,10
SetFocus>jobtest*
CreateDir>t:\%year%\GRANITE Jobs - %year%\%gran_jobnum% - %gran_jobname%\%gran_jobnum% - %donkey%
MessageModal>Directory t:\%year%\GRANITE Jobs - %year%\%gran_jobnum% - %gran_jobname%\%gran_jobnum% - %donkey% Made!
until>x,%piececount%
else
messagemodal>All Done
goto>end
endif
end>FolderCreator
Here is what happens:
Code: Select all
t:\2010
\GRANITE Jobs - 2010
\9999G
- test_test
\9999G
- Kitchen 1 of 3
Code: Select all