LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old February 20th 17, 03:49 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
First recorded activity by ExcelBanter: Feb 2017
Posts: 1
Default Retreiving records from closed workbook

I run a small company and have a large number of customers. I have made all customer related stuff in Excel (e.g. Invoices). Those are divided into separate functional Workbooks. The customer contacts are in its’ own Workbook (CUSTOMERS.xlsx) and used by every Workbook in the project.
In each application (Workbook) I need to get the customer from the customer workbook.
I have tested:
On opening a Workbook app I copy the most recent customer list from CUSTOMERS.XLSX to the workbook and use DGET to retrieve the correct record from the copied customer list. However, DGET loses the connection to the customer range/table name every time I update the list. The DGET function looks like

where tCUSTOMERS is the table I have just copied.

Can I use SQL instead to retrieve one specific record from the customer list in the closed CUSTOMERS.xlsx?
Probably easily, but I haven’t so far found any example on the net. Thankful for any advice.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Marking found records in Workbook A from Target List in Workbook B u473 Excel Programming 1 March 14th 10 08:17 AM
Workbook named range not seen by ADO when workbook closed Tim Lund[_2_] Excel Programming 2 March 16th 07 09:59 AM
Closing Hidden Workbook when Active Workbook is Closed SusanK521 Excel Programming 5 September 24th 05 12:27 AM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 08:55 AM

All times are GMT +1. The time now is 10:05 AM.

Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2004-2017 ExcelBanter.
The comments are property of their posters.

About Us

"It's about Microsoft Excel"


Copyright © 2017