+ Reply to Thread
Results 1 to 4 of 4

VBA CODE that REFRESHES ALL WORKSHEETS

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Exclamation VBA CODE that REFRESHES ALL WORKSHEETS

    I have 6 excel worksheets that are connected to a SQL database. I have a macro that refreshes all worksheets with the correct data from the database. The problem is that when i click on the RUnRefresh macro it gives and error 1004. "Please wait while excel refreshes then rerun again". so when that error comes it always goes to worksheet 6 and i have to be pressing F5 so that it refreshes worksheets 7, 8, 9 and so on until it fininshes . Here is the code below, someone please help

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by drobinson782001; 08-19-2013 at 07:51 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA CODE that REFRESHES ALL WORKSHEETS

    Maybe give this a try.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: VBA CODE that REFRESHES ALL WORKSHEETS

    Is there anyone who can ASSIST

  4. #4
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: VBA CODE that REFRESHES ALL WORKSHEETS



    heeeeeelllllppppppppppppp

+ 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] Pivot table doesn't refreshes
    By pic2pic in forum Excel General
    Replies: 4
    Last Post: 01-20-2013, 05:27 AM
  2. Save old data when web query refreshes
    By BlakeCrossley in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-19-2012, 01:54 PM
  3. listbox refreshes only sometimes
    By hvalhund in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2011, 12:01 PM
  4. Macro that refreshes/sort information
    By SeanKosmann in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2010, 04:01 PM
  5. [SOLVED] disable screen refreshes
    By ybazizi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2005, 06:40 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