+ Reply to Thread
Results 1 to 2 of 2

How to extend range of tab in internet explorer

  1. #1
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    How to extend range of tab in internet explorer

    Hi all,

    i have given below vba code to close the internet explorer tabs by retaining the first tab.

    Below code is working fine till if 4 or 5 tabs available. If there are more than 6 and above then i am getting "run time error 91".

    There is only one following requirement that i need to amend in this macro,

    a) Macro is working fine only when 5 tabs available , I want to make it unlimited to close as many tabs available retaining the first one. or say upto 30 tabs.

    HTML Code: 

    would expect some help here.
    Thank you

    If I have helped you in someway, use the * icon below to give reputation feedback, it is appreciated.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How to extend range of tab in internet explorer

    Frankly, I am not sure the problem is in code logic... I use something similar to close some explorer windows... and used to get errors too...
    If the error is a logic issue, then some tabs may not close, but as a start I would put "On Error Resume Next" just before your For lCtr2 loop, and after it, On Error Goto 0.
    It may or may not solve it, but worth a try? I am assuming here, that the problem happens in that loop... if it is in the previous loop, same thing may apply.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ 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. Help With internet explorer
    By bryantbergman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2016, 04:09 PM
  2. loop through a range and open internet explorer where link is valid
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2014, 05:58 AM
  3. [SOLVED] How to toggle focus between INTERNET explorer window and WINDOWS explorer window using VBA
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2013, 03:29 PM
  4. How to use tab down on internet explorer?
    By allepavankumar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2012, 10:28 AM
  5. VBA with Internet Explorer
    By mike20255 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-29-2010, 01:30 PM
  6. Using internet explorer through VBA
    By bodis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2010, 05:47 AM
  7. [SOLVED] internet explorer
    By doris in forum Excel General
    Replies: 1
    Last Post: 01-05-2005, 06:06 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