+ Reply to Thread
Results 1 to 2 of 2

DISABLE "SAVE QUERY DEFINITION"

  1. #1

    DISABLE "SAVE QUERY DEFINITION"

    Is it possible to disable "save query definition" through macro.
    Basically I do not want any external data links saved in define names
    when I run query through macro.

    Thanks


  2. #2
    Rob van Gelder
    Guest

    Re: DISABLE "SAVE QUERY DEFINITION"

    This deletes all querytables from ActiveSheet

    Dim qtb As QueryTable

    For Each qtb In ActiveSheet.QueryTables
    qtb.Delete
    Next

    This approach will leave behind the named range for the querytable.

    If you're managing QueryTables you may be interested in the Query Editor
    Add-In on my website.


    --
    Rob van Gelder - http://www.vangelder.co.nz/excel


    <[email protected]> wrote in message
    news:[email protected]...
    > Is it possible to disable "save query definition" through macro.
    > Basically I do not want any external data links saved in define names
    > when I run query through macro.
    >
    > Thanks
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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