+ Reply to Thread
Results 1 to 40 of 40

Open new threads only

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Open new threads only

    Hello everyone

    Is there a way to open the new threads with the new replies only in the forum ... ?

    I mean to navigate to the forum and open the new threads that is not read or the threads that has new replies in one shot

    Thanks advanced for help
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Open new threads only

    This is the link to new posts:

    https://www.excelforum.com/search.php?searchid=8623056

    I don't understand what the problem might be ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Thanks a lot for reply
    In the link provided
    'Sorry - no matches. Please try some different terms.'

    The problem is that I want to open all new threads in one shot : each thread in new tab in the broswer..
    I don't mind if there is a code to do that ..

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Open new threads only

    OK, well then it would have been sensible to say this in the first place.

    Please explain in DETAIL what it is you are trying to do.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    OK. I thought it is clear
    Generally glad it is clear now
    Thanks a lot for sharing

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Open new threads only

    Well, no - it's not clear to me exactly what you want to archive or why, but hey!

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Here's my attempt by code
    Please Login or Register  to view this content.
    I have commented the desired part .. I want to list in column A , the new threads for me (that have new replies I didn't see)
    Hope it is clear now
    Attached Images Attached Images

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Any help in this topic please?

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Hope to find responses to this topic ..

  10. #10
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    You want:
    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Thanks a lot Mr. Kyle for reply
    I already tested that part
    Please Login or Register  to view this content.
    But I got type mismatch error (run-time error '13')

  12. #12
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    That means there aren't any. As far as I can see from your code, you never navigate to the page in your screenshot. The link for that page is:
    Please Login or Register  to view this content.

  13. #13
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    I waited till there are new threads for me and retest the code but the same error .. I even replaced my link with the link you provided without opening it and I got the same error. I am using IE 11 and windows 7 32 Bit

  14. #14
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    Please post your actual code

  15. #15
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    My code posted at post #7. That's my actual code

  16. #16
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    That code doesn't have any of mine in it

  17. #17
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Do you mean the code after the modifications you guided me
    Please Login or Register  to view this content.

  18. #18
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    On which line do you get the error? Bear in mind that there will not be an li within the elements found

  19. #19
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    I got error at this line
    Please Login or Register  to view this content.

  20. #20
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    1. You aren't waiting for the redirect before logging in
    2. oHEle shouldn't be declared as HTMLUListElement

    You may want to adjust the below as you could end up in an infinite loop should the password be incorrect

    Please Login or Register  to view this content.
    Last edited by Kyle123; 10-09-2018 at 05:34 AM.

  21. #21
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Awesome. Thank you very much
    That's working great and as expected ..

    One last point if possible : How can open each link in new tab in IE?

  22. #22
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    Ie.navigate2 x.href, 2048&
    Though I suggest you don't. It opens them too quickly and you'll get your ip blacklisted

  23. #23
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Thanks a lot for suggestion
    What 2048& refers to ???! If we make a waiting time between opening the links I think this would solve the IP issue

  24. #24
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    It’s an enum value for telling ie to open in a new tab

    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

  25. #25
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Thank you very very much
    I have tested the code and it is great ..
    I used these two lines
    Please Login or Register  to view this content.
    Just one note : when opening the links ..if a thread has more than a page (two pages for example), it opens on the first page
    What is the trick I can use to open the last page?
    Last edited by YasserKhalil; 10-10-2018 at 12:28 AM.

  26. #26
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Just one note : when opening the links ..if a thread has more than a page (two pages for example), it opens on the first page
    What is the trick I can use to open the last page?

  27. #27
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    There's no trick, just inspect the source code for the link that takes you to the last post and navigate to that instead of the link extracted above

  28. #28
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    I couldn't get how to do that. I inspected the source code but didn't know hot to get the code to navigate to the last page

  29. #29
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    Look at the href of the button that takes you to the last post

  30. #30
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Thanks a lot for your patience
    I am trying to inspect and try to know how can I solve it but I really don't know
    When inspecting a thread of two pages I got two links like that
    Untitled.png
    But I don't know how to code to deal with the last page or last link

  31. #31
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    You're looking in the wrong place, to go to the last post, you click the link in the last post column next to the username - this has the link you need

  32. #32
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Do you mean like that .. if not please leave a snapshot as I am lost
    Untitled.png

  33. #33
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    No, I don't. See attached
    Attached Images Attached Images

  34. #34
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    I think I found the part you are talking about

    But how can I reach this part ..Can you help me please?
    Untitled.png

  35. #35
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    What have you tried so far?

  36. #36
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    I am trying to find a clue for how to reach this point but I am lost. I used Google Chrome and copied the XPath
    //*[@id="thread_1247090"]/div/dl/dd[2]/a[2]
    But I have no idea of how to use XPath ..

  37. #37
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    I think you need to read up on HTML and the DOM, this will give you a much better idea of how to navigate a page:
    Please Login or Register  to view this content.

  38. #38
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Thank you very much. That works like charm but I really would like to get how did you do that line of code
    As for the method offsetParent .. How does it work? And how I can detect the parent of the element?
    Untitled.png

  39. #39
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Open new threads only

    There's a lot to learn - it would take an essay to explain it, I can't really explain it to you here. You need to read up on HTML and the DOM

  40. #40
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Open new threads only

    Thank you very much for great help. I will try to read again about DOM
    Best and Kind Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] "My Threads" List "list of my solved threads / Unsolved threads / favourites list
    By JimmyWilliams in forum Suggestions for Improvement
    Replies: 7
    Last Post: 08-29-2017, 05:20 AM
  2. Replies: 11
    Last Post: 02-27-2017, 08:02 AM
  3. [SOLVED] Issue - Threads Say 0 Posts but Threads have Mutliple posts
    By Mordred in forum Suggestions for Improvement
    Replies: 17
    Last Post: 03-30-2012, 05:22 PM
  4. Sorry for the 3 threads! My bad...
    By madhead4000 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-03-2006, 04:14 PM
  5. [SOLVED] a way to get all the threads
    By srinivasan in forum Excel General
    Replies: 4
    Last Post: 08-22-2005, 08:05 AM
  6. new threads.....
    By DannyJ in forum Excel General
    Replies: 1
    Last Post: 07-15-2005, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1