Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PM PM is offline
external usenet poster
 
Posts: 16
Default How to communicate between Excel and VB6 ?

Hi !

I know how to open a workbook from VB6 using Automation.
But can I open a VB program from Excel?

(a) I don't seem to find the adequate objects in the VB library...
(b) If the answer is yes, then what about compiled VB code ??

I bet the general question is : since I read on this very page that "I you
dont want to share data, don't put it in Excel", then how do I efficiently
hide my code from unauthorized viewers ? My idea was to use VB...

Hope you great wizzards can give me a hint or a reference !

Pat


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default How to communicate between Excel and VB6 ?

Pat,

Check out the "Shell" function for running another compiled application.

Your VBA code may be hidden from view and password protected. In the VBA
editor, right click your project in the project window, then VBA Project
Properties...

Dale

"PM" wrote:

Hi !

I know how to open a workbook from VB6 using Automation.
But can I open a VB program from Excel?

(a) I don't seem to find the adequate objects in the VB library...
(b) If the answer is yes, then what about compiled VB code ??

I bet the general question is : since I read on this very page that "I you
dont want to share data, don't put it in Excel", then how do I efficiently
hide my code from unauthorized viewers ? My idea was to use VB...

Hope you great wizzards can give me a hint or a reference !

Pat



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default How to communicate between Excel and VB6 ?

Hi Pm,

then how do I efficiently
hide my code from unauthorized viewers ? My idea was to use VB...


The easiest way is to implement your code as classes in a VB6 ActiveX
exe. Your VBA code can then have a reference to the project,
instantiate those classes and run the code in them.

I'm sure there are examples of doing this online, but I don't know of
any off the top of my head. It is one of the topics we cover in
'Professional Excel Development', due out in January.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk


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
Charts That Communicate Progress Workbook Charts and Charting in Excel 5 February 4th 09 12:20 PM
excel newb needs some help making multiple sheets communicate for ecommerce project! ebay801 Excel Discussion (Misc queries) 1 January 13th 06 04:38 AM
Why won't AOL email communicate with lotus notes email? ManInaMaze Excel Discussion (Misc queries) 0 August 3rd 05 02:41 AM
Communicate with Internet Explorer from Excel junx13[_4_] Excel Programming 0 June 22nd 04 04:09 AM


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