Im having troubles calling a variable within a variable
for instance, i look through some code with excel - once it hits a row which meets, i grab the line
For example
Input>Sheet,Sheet?,Sheet1
Let>Excel=C:\Upload\Test.xls
XLSheetToArray>%Excel%,%Sheet1%,xlData
<LOOP CODE>
Let>URL=xlData_%count%_3
SMTPSendMail><email>,<server>,<from>,<name>,<Subject>,%URL%,
So basically lets say row 100 meets the condition, the URL variable should get populated with the contents of xlData_100_3
Instead, URL becomes xlData_100_3 which then my mail makes no sense
What am i missing here?
Varaibles on Variables with Excel
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Varaibles on Variables with Excel
What do you see in the watch list after the XLSheetToArray call. You should see the xlData array variable in the watch list. If you double click that you'll see the values. Is xlData_100_3 showing there?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Varaibles on Variables with Excel
Its working
it doesnt work when i put this in the data
SMTPSendMail><email>,<server>,<from>,<name>,<Subject>,xlData_%count%_3,
but works if i name the variable first
Let>URL=xlData_%count%_3
SMTPSendMail><email>,<server>,<from>,<name>,<Subject>,%URL%,
it doesnt work when i put this in the data
SMTPSendMail><email>,<server>,<from>,<name>,<Subject>,xlData_%count%_3,
but works if i name the variable first
Let>URL=xlData_%count%_3
SMTPSendMail><email>,<server>,<from>,<name>,<Subject>,%URL%,
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Varaibles on Variables with Excel
Yes, that's expected.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?