Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Worksheet Controls Forms vs Active-X

I am creating an application, and wish to keep the code
totally separate (to allow upgrades) from the data
workbooks, whose sheets will contain controls. Ideally I
would use ActiveX controls for their greater flexibility.

These would require code embedded in the data workbooks,
although I can minimise this by calling functions held in
the code workbook, which must then be referenced by the
data workbook. This seems a lot of hassle. Does anyone
know if there is a better way?

Also, I understand ActiveX controls are not available in
Excel 2001 for the Mac. Are they available in more recent
versions?

And finally, is there any reason to believe that the older
forms controls will no longer be supported in future
versions of Excel?

Many thanks in advance for answers to any of these related
questions.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Worksheet Controls Forms vs Active-X

Andy,

I had a similar problem where I had an application workbook and multiple
data workbooks, although it was purely for workbook and worksheet events not
ActiveX controls, but same principle. I could have used application events,
but I did not want to impose that on other workbooks, so I used the method
that you describe whereby I simply added stub events that called into the
application workbook, like so

Private Sub Workbook_Open()
Application.Run "'Leave.xls'!wbOpen"
End Sub

Private Sub Workbook_Activate()
Application.Run "'Leave.xls'!wbActivate", ThisWorkbook.Name
End Sub

Private Sub Workbook_Deactivate()
Application.Run "'Leave.xls'!wbDeactivate", ThisWorkbook.Name
End Sub

etc.

It seems a bit kludgy, but it works well.

Don't know anything about Mac.

I would have thought that forms controls are so embedded that they will
remain for the foreseeable, but who knows what will happen with .Net.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Andy Keen" wrote in message
...
I am creating an application, and wish to keep the code
totally separate (to allow upgrades) from the data
workbooks, whose sheets will contain controls. Ideally I
would use ActiveX controls for their greater flexibility.

These would require code embedded in the data workbooks,
although I can minimise this by calling functions held in
the code workbook, which must then be referenced by the
data workbook. This seems a lot of hassle. Does anyone
know if there is a better way?

Also, I understand ActiveX controls are not available in
Excel 2001 for the Mac. Are they available in more recent
versions?

And finally, is there any reason to believe that the older
forms controls will no longer be supported in future
versions of Excel?

Many thanks in advance for answers to any of these related
questions.



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
Forms controls Catalin Excel Worksheet Functions 2 May 11th 06 03:44 PM
Active X controls dksoreal Excel Discussion (Misc queries) 2 June 30th 05 02:35 PM
Active X controls jules Excel Programming 3 May 21st 04 06:42 PM
Tab Between Active X Controls on Worksheet Dan Gesshel Excel Programming 1 February 25th 04 05:22 PM
Forms Controls Chuck Taylor Excel Programming 2 December 1st 03 01:42 PM


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