Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Dynamic Link to SQL

Certainly, just use the Workbook_Open() event to run your SQL code.

E.g.,

Private Sub Workbook_Open()

' Insert code to run SQL here

End Sub

---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Dynamic Link to SQL

Can I access a store proc or only tables/views.


-----Original Message-----
Certainly, just use the Workbook_Open() event to run your

SQL code.

E.g.,

Private Sub Workbook_Open()

' Insert code to run SQL here

End Sub

---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com

*** Sent via Developersdex http://www.developersdex.com

***
Don't just participate in USENET...get rewarded for it!
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Dynamic Link to SQL

You can access a stored procedure, as long as it's stored in an open
workbook or add-in. Just call it like you normally would, unless it's
in an inactive (but still open) workbook, in which case you would call
it thus:

Application.Run(strWorkbookName & "!My_Proc", argument1, argument2)

---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Dynamic Link to Quickbooks aMack Excel Worksheet Functions 2 September 2nd 08 05:55 PM
Dynamic link to workbook [email protected] Links and Linking in Excel 3 October 25th 07 08:38 AM
Dynamic link to website Rajan Iyer Excel Worksheet Functions 2 July 31st 07 08:45 AM
dynamic link Smat Excel Discussion (Misc queries) 2 September 14th 06 08:00 AM
dynamic link itay Links and Linking in Excel 1 February 25th 05 05:36 PM


All times are GMT +1. The time now is 10:06 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"