Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Double Click to run a sub then re-initializes userform?? Why???


I have a userform that has a listbox that contains data in 7 columns. I
also have a command button that when clicked allows the user to edit the
data in whatever row of the list box is highlighted. This works fine.

I decided to have a double click in the listbox on a row do the same
thing. So I simply picked the double click event and called the
command button sub. When I try this, it runs the command button sub,
but then it runs the userform initialize sub. This is a problem as it
does thing that I do not want to occur again.

I then decided to put the command buttom code in a separate sub and
then call that sub on the double click -- same result.

Anyone know why this happens, I see no reason for it.


--
RobVos
------------------------------------------------------------------------
RobVos's Profile: http://www.excelforum.com/member.php...o&userid=34859
View this thread: http://www.excelforum.com/showthread...hreadid=546090

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Double Click to run a sub then re-initializes userform?? Why???


I mis-typed the above -- it is the Active sub that is running again, not
the Initialize sub.


--
RobVos
------------------------------------------------------------------------
RobVos's Profile: http://www.excelforum.com/member.php...o&userid=34859
View this thread: http://www.excelforum.com/showthread...hreadid=546090

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
How to change syperlink from single click to double click syperlinker Excel Worksheet Functions 0 June 13th 08 05:01 PM
userform label double-click goes to click event John Paul Fullerton Excel Programming 3 May 19th 06 05:54 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
CommandBarButton click vs. double click Derrick[_3_] Excel Programming 2 May 26th 05 08:28 PM
Mouse Over Graph, Capture Information on Click(Double Click) Dean Hinson[_3_] Excel Programming 1 December 6th 04 04:49 AM


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