Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default linking two workbooks with ODBC & the Excel Driver

Hi I am currently working on a custom function to retrieve data from some
lists held in a 'record' workbook to be placed in appropriate cells of a
'working' book.

I have been able to create the function however if a 'working' book is saved
without the appropriate info already in the record book the function does not
automaticaly update when this info goes in.

I think I need to use ODBC in the code but am unsure how to refernce this as
I only have sample code for ODBC use with a database driver??

Function SampleRef(FilterID, FilterSize)

GetSheet = "Filter" & FilterSize
GetArray = "Filter" & FilterSize & "FilterNo"

For Each Cell In
Workbooks("ControlFigures").Worksheets(GetSheet).R ange(GetArray)

CycleRef = Cell.Value

If FilterID = CycleRef Then

SampleRef = Cell.Offset(0, 17).Value

Exit For
Else: SampleRef = "#N/A"
End If
Next Cell
End Function

Reply
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
64 bit ODBC driver for Excel (Server 2008) NicAC Excel Discussion (Misc queries) 0 October 28th 09 11:34 AM
Free XML ODBC driver for EXCEL Pete Jones Excel Discussion (Misc queries) 0 March 28th 08 03:42 PM
xl odbc driver, Excel 2003 johnny_2005 Setting up and Configuration of Excel 0 February 15th 05 10:08 PM
which odbc excel driver is the best? andre Excel Programming 2 June 3rd 04 06:36 PM
[ODBC Excel Driver] Too few parameters. Expected 1. Dave - A1 Excel Programming 0 September 4th 03 03:56 PM


All times are GMT +1. The time now is 06:15 AM.

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

About Us

"It's about Microsoft Excel"