malefic 48 Posted December 29, 2010 Report Share Posted December 29, 2010 Morning all. I am going through a loop of email addresses and once the bot does its things, if the email is valid I want it to write that email address to a text file. Here is the sub I am using to write to the file and the error message I am getting (I know the loop / email checker is working as I used this sub to write out the current list position to the text (just meant I had a list of numbers instead of the actual email address). The test email list has 2 invalid and 1 valid email address, with the valid email being number three in the list. Hope someone can point out the place where I am going wrong! Cheers all. Quote Link to post Share on other sites
Pete 121 Posted December 29, 2010 Report Share Posted December 29, 2010 List position should be a number I believe So you tell it the list to save from then the list position by number Quote Link to post Share on other sites
malefic 48 Posted December 29, 2010 Author Report Share Posted December 29, 2010 Thats what I am trying to do with my loop - I don't want to specify a number as it will depend on how many times the loop has gone round. I didn't show the loop function, perhaps I should of. I am looping for the count of items in the email list.So first time round the list item will be 0 (or is it 1?)Second time round it will be 1Third time 2 etc So whatever number it is will change. Cheers Quote Link to post Share on other sites
Pete 121 Posted December 29, 2010 Report Share Posted December 29, 2010 Then put a counter inside the loop Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.