connection

  1. A

    Edit Connection using Excel Cell

    Hi, I really hope one of you can help em with this. I know it can be done i just dont know hoe. I have a connection that links to an SQL table and data range on that table however i want to be able to enter a data range in a cell or 2 cells and it bring me back that data. Thanks in advance Dan
  2. C

    Refreshing Data Connection changing forumlas issue??

    Hello, I've recently run into an issue where the formulas in my summary tab are being changed when I refresh my data connection. Has anyone seen this before? Or know how to trouble shoot? To give some context there are two formulas below. When I refresh the data connection the $R:$R changes to...
  3. H

    Power Query Update - Mac

    Goodmorning All I have a small dilemma and was looking for ideas on a work around. There is an Excel report that I have built on our shared drive. This report is based on a table created from a power query link into our company database. I have inserted a macro so that when the workbook is...
  4. A

    Corect use of SQL

    Hi, I want to query some data in my worksheet using SQL. This may not be a good idea as I recall some problem with memory leaks or similar, but regardless I can't get it working and would like to I'm using ADODB and I have a working connection (to the current workbook) and can get results...
  5. D

    Stuck on ADODB.connection MySQL

    Hi, I am completely stuck on this one, any help will be appreciated. I have a code which is supposed to do inserts/updates in database. I have connected to database using both (one commented out): Sub SQLConnection() Dim oConn As ADODB.Connection Set oConn = New ADODB.Connection...
  6. S

    Disable Data Connection

    Hey everyone, Hoping someone on here can help I am using a data connection from an Access Database to populate a number of tables in excel. The connection works great except that whenever the excel spreadsheet is open no one else is able to make changes to the database. People who access the...
  7. V

    Excel/Access Traversing

    Afternoon All Does anyone know if.... an excel formula can traverse a data connection into an access database? The scenario is we want to implement a dashboard, but the only way to implement appears to be by pulling the data records into excel. Was trying to see if there is a way to have the...
  8. J

    VBA Excel writing to SharePoint ADO

    Hello all, I have a coding solution that worked successfully for a number of months but then stopped. I'm self-taught / Google/Youtube taught so you may have to dumb it down for me. The code takes a few fields from Excel and writes it to a SharePoint list. The code still works fine for me and...
  9. skorpionkz

    [VBA] Loop Recordset vs Array - What is faster

    Hi guys, I have code to read data from about 50 data tables. Code opens connection, creates recordset and then pass it to the array. Next it close connection and then loop through the array. I am wandering now is this would be actually better/faster to loop through the Recordset itself? Or...
  10. Z

    ADODB Recordset timing out but not giving an error

    Hi, I have a macro that connects to a DB2 database and returns a recordset that I complete subsequent actions with. I have found that longer queries are causing excel to stall - giving me the 'this program is not responding' and forcing me to restart excel. I have played around with the command...
  11. T

    Queries & Connection

    Good morning, I used to enter my SQL by going into Excel --> Data --> Connections and then add new connection. The tab now has a label called "Queries & Connections" and I can't see where I can add new connections, I've clicked on the new label, but there's nowhere I can see to add a new...
  12. C

    Data Connections in Excel 2016 (Only want to create the connection not load the data)

    I am having an issue creating data connections in Excel 2016 (365 subscription) to a MS SQL View. When I attempt to create the connection it asks to load data. I've looked through the DATA >>GETDATA>>FROM DATABASE>>FROM SQL SERVER DATABASE in the advanced options area but couldn't find anything...
  13. M

    Website Connection Query

    Hi, This is a long shot. I've set up a connection to a website that pulls historical data into a table in my spreadsheet. I've used the URL below to create the connection/query. My question is is there anyway of automatically updating "end=20180115" so each day when I refresh the spreadsheet...
  14. C

    External Image Connection

    Good day, Is it at all possible to create a connection from another workbook to include images? As data tables work fine, but leave the images behind. Or in some way dynamically add a number of images to a sheet - possibly from a folder. Thanks in advance for any help.
  15. M

    connect to ADODB on FTP server

    I am using a centralized data base on an FTP server that I need to form a connection to from excel to write, update, and pull data. Thus far I can get this to work when the data base in on my local computer, but once it's on the server I can't open the connection with a macro. The following is...
  16. N

    Control part of SQL Query inside External Data Connection from within Excel Workbook.

    Excel 2016 - I have an Excel file that imports a table from SQL Server via a connection created with the Data->Get Data->From Database->From Sql Server Database. As part of the Advanced Options while creating that connection I included a SQL query that basically reads: SELECT...
  17. M

    Excel remembers an old DSN name

    Hi all.. I have an issue as follows:- I created an Excel file which uses 3 ODBC queries to pull data from Sage Accounts. I (perhaps unwisely) set up a new DSN called 'WELTON',to use for this purpose and pointed it at the data folders. However, I am now using the same report for a different...
  18. M

    Losing ADODB.Connection

    I am using the following to create a connection to an Access Db file via the Workbook_Open procedure in ThisWorkbookSet cnConnection = CreateObject("ADODB.Connection") strDbName = ThisWorkbook.Path & "\" & strDbFile cnConnection.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & strDbName...
  19. M

    display last connection refresh time?

    I'm using auto refresh connections and want to put the time of the last connections refresh into a cell. Is that possible?

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top