Results 1 to 4 of 4

Thread: how to delete first 10 mails from mail box (outlook)

  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    1

    how to delete first 10 mails from mail box (outlook)

    how to delete first 10 mails from mail box (outlook)


  2. #2
    Junior Member
    Join Date
    Jul 2008
    Answers
    10

    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


  3. #3
    Junior Member
    Join Date
    Jul 2008
    Answers
    10

    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


  4. #4
    Junior Member
    Join Date
    Aug 2008
    Answers
    3

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact