-
Junior Member
how to delete first 10 mails from mail box (outlook)
how to delete first 10 mails from mail box (outlook)
-
Junior Member
Re: how to delete first 10 mails from mail box (outlook)
Hi deepa, here we can get the list of mails in ur inbox.say 40 mails delmails = 10 totalmails = say 40 if totalmails > delmails then for i = 0 to delmails -1 check the item(i.e check box) next webbutton("delete" ,"").click end if i think u will get an idea now next
-
Junior Member
Re: how to delete first 10 mails from mail box (outlook)
Hi deepa,
here we can get the list of mails in ur inbox.say 40 mails
delmails = 10, totalmails = say 40 ,
if totalmails > delmails then
for i = 0 to delmails -1
check the item(i.e check box)
next
webbutton("delete" ,"").click
end if
i think u will get an idea now next
-
Junior Member
Re: how to delete first 10 mails from mail box (outlook)
hi friend,
i will give one example with code. by using automation..kindly follow if it works..
--------------
Browser("Yahoo!").Page("Yahoo!").Link("Mail").Click Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("login").Set "venkatraj.banka"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("password").SetSecure "password" Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton
("Sign In").Click Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link
("Inbox (10)").Click
For i = 1 to 10
b=Browser("Yahoo!").Page("Inbox (10) - Yahoo! Mail").webtable("inbox(10)").ChildItem
(i,1,"WebCheckBox",0).Set "ON"
Next b.Delete
---------------
if anything wrong about my code.plz try to inform me..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules