Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Get VBA procedures from DB

Hi,

Have anyone got a workable plan for this?

I want a 'light' Excel 2000 workbook to get VBA code from a (SQL Server
2000) database and run it. ie. to create an Excel application 'on the fly'.

The plan is to distribute a generic workbook to users around the world, so
that we can keep adding and improving features indefinitely.

All thoughts welcome.
Thanks,
Hiran



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Get VBA procedures from DB

It's would not be a "light" workbook, it's quite heavy.

Assuming you follow the usual way of extracting data from MSSQL (ADO on top
of OLEDB) you will need to have code to

1. Connect to the database.
2. Select the 'correct' code
3. Access the workbook to either add the code or create a reference to a
downloaded code object.

So, you have to ensure that the user has ADO, trusts access to the excel
development environment and/or has a certificate for your code installed.

This is basically a bad idea - try another way. Good luck


--
www.alignment-systems.com


"Hiran de Silva" wrote:

Hi,

Have anyone got a workable plan for this?

I want a 'light' Excel 2000 workbook to get VBA code from a (SQL Server
2000) database and run it. ie. to create an Excel application 'on the fly'.

The plan is to distribute a generic workbook to users around the world, so
that we can keep adding and improving features indefinitely.

All thoughts welcome.
Thanks,
Hiran




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Get VBA procedures from DB

Hi John,

Thanks.
I'm ok with steps 1 and 2.
On Step 3 I will need to put the VBA code in a text field from a
'development Excel workbook' with some sort of carriage return delimiters, I
guess. Is there a tool for this?
Then, putting the retrieved code into the Client workbook - I found a
tutorial in Chip Pearson's site (thanks Chip).

An example would be nice. Anybody?

BTW 'light' workbook because all it will have will be code for (1) a
connection (2) which code to retrieve. (a 15k file?)

Thanks in advance,
Hiran





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Get VBA procedures from DB

it's not that simple. You cannot easily add lots of code to an excel
workbook. I suggest you have a try and then re-design when you get stuck.

good luck

--
www.alignment-systems.com


"Hiran de Silva" wrote:

Hi John,

Thanks.
I'm ok with steps 1 and 2.
On Step 3 I will need to put the VBA code in a text field from a
'development Excel workbook' with some sort of carriage return delimiters, I
guess. Is there a tool for this?
Then, putting the retrieved code into the Client workbook - I found a
tutorial in Chip Pearson's site (thanks Chip).

An example would be nice. Anybody?

BTW 'light' workbook because all it will have will be code for (1) a
connection (2) which code to retrieve. (a 15k file?)

Thanks in advance,
Hiran






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
Ontime procedures ironmouse[_4_] Excel Programming 3 June 13th 05 09:41 AM
Macro procedures Danita Excel Programming 1 January 14th 05 07:54 PM
VBA Sub procedures lexiez Excel Programming 2 October 4th 04 04:21 PM
what's wrong with this sub procedures? active_x[_4_] Excel Programming 8 September 10th 03 05:25 AM
VBA -- procedures as arguments? Dave Ring Excel Programming 1 August 27th 03 02:27 AM


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