LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default .odc connection managing with vba in excel 2003?

Hello fellow coders. I created a pretty slick app the creates an access
database and imports all the excel files in a folder into that database. This
is for a report in excel so I am pulling data from access into excel with a
piviot table. I am using an .ODC file to save the connection as the folder
where the excel files and database are created will change as the app gets
distrubited to different people. Wrote it all up in 2007 and saved in 2003
file format client only has 2003. This code does not work in 2003.
Public Sub AddDataConnection()
Dim workbookconnect As WorkbookConnection
ActiveWorkbook.Connections.AddFromFile (folder_name)

End Sub


anyone know the excel 2003 equivlilant to get this to work?
 
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
ADO connection not opening in Excel 2003 Smallweed Excel Programming 0 May 23rd 08 05:26 PM
ODBC connection trough Visual Basic in Excel 2003 Cato Larsen Excel Programming 0 February 20th 08 02:37 PM
DB connection 2003 vs 2007 Jordan Excel Discussion (Misc queries) 1 October 30th 07 11:58 PM
Managing Excel from VB^ Uwe Excel Programming 2 April 15th 06 07:43 PM
How do I set up my ODBC Connection from AS/400 file in Excel 2003 HTIMAPICSAdmin Excel Discussion (Misc queries) 0 June 1st 05 08:13 PM


All times are GMT +1. The time now is 04:21 PM.

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"