+ Reply to Thread
Results 1 to 4 of 4

Creating a simplified version of existing ineffecient code.

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    39

    Creating a simplified version of existing ineffecient code.

    Hi,

    I have 32 worksheets and use the following piece of code to cycle through them and refresh the web data contained within each sheet. I'd like to create a more efficient loop to perform this task

    Please Login or Register  to view this content.
    Many thanks in advance

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating a simplified version of existing ineffecient code.

    Perhaps targeting the WebQuery objects indirectly will get them all wherever they may be in the workbook:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Creating a simplified version of existing ineffecient code.

    perhaps
    Please Login or Register  to view this content.
    but with 2010 you may need
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    01-28-2013
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Creating a simplified version of existing ineffecient code.

    Hi thank you both for your help, 1st answer works perfectly. Many thanks

+ 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] Correct way to apply an existing VBA code to an existing sheet
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2013, 05:42 PM
  2. Help with creating new tables from existing ones
    By Dreyth in forum Excel General
    Replies: 1
    Last Post: 04-13-2013, 10:20 AM
  3. Replies: 2
    Last Post: 03-17-2011, 08:55 PM
  4. Replies: 1
    Last Post: 08-15-2009, 05:52 AM
  5. Creating a (Modal) version of File :: New :: Contact from Excel (into Outlook)
    By wills25@attglobal.net in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2005, 10:06 AM

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