Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA: Automatically activating Private Subs


Hello,

I have 21 combo boxes in one worksheet each having its own private sub
(Private Sub abc_activate()) for a selection procedure.
If I select each sub in the VBA Editor and then click on the run
sub/userform button the correct result is shown in the respective combo
box.
But it does not do it automatically when I click on the workbook or
open up the file.

How do I automate this clicking orgy?

Rgds,
Sven


--
sven_dau
------------------------------------------------------------------------
sven_dau's Profile: http://www.excelforum.com/member.php...o&userid=35291
View this thread: http://www.excelforum.com/showthread...hreadid=562771

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Excel VBA: Automatically activating Private Subs

Use the click event of the combobox.

--
Regards,
Tom Ogilvy


"sven_dau" wrote:


Hello,

I have 21 combo boxes in one worksheet each having its own private sub
(Private Sub abc_activate()) for a selection procedure.
If I select each sub in the VBA Editor and then click on the run
sub/userform button the correct result is shown in the respective combo
box.
But it does not do it automatically when I click on the workbook or
open up the file.

How do I automate this clicking orgy?

Rgds,
Sven


--
sven_dau
------------------------------------------------------------------------
sven_dau's Profile: http://www.excelforum.com/member.php...o&userid=35291
View this thread: http://www.excelforum.com/showthread...hreadid=562771


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA: Automatically activating Private Subs


Tom,

If you mean changing from _activate to _click, i.e. from Private Sub
abc_activate() to Private Sub abc_click() in the VBA Editor then it
does not work. The combo box remains empty.

Also, combo box properties does not have an event item.

?

Thanks,
Sven


--
sven_dau
------------------------------------------------------------------------
sven_dau's Profile: http://www.excelforum.com/member.php...o&userid=35291
View this thread: http://www.excelforum.com/showthread...hreadid=562771

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
re : Possible to run private sub macros by writing another private ddiicc Excel Programming 5 August 26th 05 04:49 AM
Private Sub Running Other Private Sub Inadvertently Ross Culver Excel Programming 2 February 10th 05 07:17 PM
Private subs Flima Excel Programming 1 January 7th 05 10:05 PM
Calling VBA add-in functions/subs from another Excel file. Bret Holle Excel Programming 1 September 17th 04 01:43 AM
calling private subs dunlklee Excel Programming 1 December 16th 03 08:40 AM


All times are GMT +1. The time now is 01:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"