+ Reply to Thread
Results 1 to 4 of 4

VBA syntax to issue Refresh command

Hybrid View

  1. #1
    Registered User
    Join Date
    11-23-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    38

    Question VBA syntax to issue Refresh command

    Hi all:

    I am struggling in finding the method/syntax to issue a "Refresh" command in my VBA. Essentially, one worksheet in the workbook has a CONNECTION string defined in it that I want to be able to execute.

    I do not want to use the RefreshAll option as I just need to have data refresh on this one worksheet and not the rest of the workbook

    Can someone please help me out?

    Thank you!

  2. #2
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: VBA syntax to issue Refresh command

    Hi Melissa,

    Have you tried

    ActiveWorkbook.Connections("<connection name>").Refresh
    That allows you specify a named Connection.

    Hope this helps.
    ----
    Mark threads as Solved
    Star those that help

  3. #3
    Registered User
    Join Date
    11-23-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: VBA syntax to issue Refresh command

    Thanks Steven - this worked like a charm!!!

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: VBA syntax to issue Refresh command

    Happy to help

    Don't forget to mark the thread as Solved

+ 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] What's the syntax to refresh QueryTable objects?
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2014, 12:48 PM
  2. syntax issue.
    By bopsgtir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2012, 09:35 PM
  3. [SOLVED] Syntax Issue
    By Vladamir in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2012, 10:36 AM
  4. Syntax for Range command with a variable
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2007, 12:14 PM
  5. [SOLVED] EXCEL command or syntax
    By PCOR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-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