Results 1 to 5 of 5

Removing connections

Threaded View

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Esbjerg, denmark
    MS-Off Ver
    Excel 2007
    Posts
    3

    Removing connections

    Hi All,

    I am writing a macro that collects data from many different http addresses on our intranet. This however leaves me with a lot of connections, that slows excel after a while. How can I delete these connections ? I create the connection as shown below.

    With ActiveSheet.QueryTables.Add(Connection:= _
                "URL;http://pdm:8080/lm/Forms/matdb/laminate?laminate=" & TempCertificate, Destination:= _
                Range("$A$2"))
                .Name = "Connection"
                .FieldNames = True
                .RowNumbers = False
                .FillAdjacentFormulas = False
                .PreserveFormatting = True
                .RefreshOnFileOpen = False
                .BackgroundQuery = True
                .RefreshStyle = xlInsertDeleteCells
                .SavePassword = False
                .SaveData = True
                .AdjustColumnWidth = True
                .RefreshPeriod = 0
                .WebSelectionType = xlEntirePage
                .WebFormatting = xlWebFormattingNone
                .WebPreFormattedTextToColumns = True
                .WebConsecutiveDelimitersAsOne = True
                .WebSingleBlockTextImport = False
                .WebDisableDateRecognition = False
                .WebDisableRedirections = False
                .Refresh BackgroundQuery:=False
            End With

    I have tried "
    ActiveWorkbook.Connections("Connection").Delete
    " with no effect.
    Last edited by Amdi; 01-28-2013 at 09:40 AM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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