![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I have a ListBox1 that responds to a click event by running function ListBox1_Click(). I have a CommandButton1 that responds to a click event by running function CommandButton1_Click() I want, by clicking CommandButton1, a Click event for ListBox1 to be fired. Did this.. Sub CommandButton1_Click() ListBox1_Click End Sub kinda works.. but Excel's displaying the sheets all wrong now.. ie its not cleared Tried RaiseEvent, but that does not work Question: How do I correctly fire an event? |
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
I have no real idea of what your problems are as you haven't really told us, other than "Excel's displaying the sheets all wrong "
Try setting the TakeFocus******* property for the CommandButton to False. _________________ Kind Regards Dave Hawley OzGrid Business Applications Microsoft Excel/VBA Training ![]() [ This Message was edited by: Dave Hawley on 2002-03-12 19:56 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|