Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Search ideas to by pass Bug "OnAction" with parameters XP/ XL2K SP3

I am searching any ideas to by pass the bug with "OnAction" with
parameters on XL 2000 SP3
The bug is that nothing is happening consecutively to a click on a
custom Control Button menu.
It's work fine with XL 2000 SP2 and XL2003, unfortunatuly I have to
use XL 2000 SP3.
In my code there is a lot of control menu button affected with this
action property. If I can't pass the parameters to my Sub, I will have
to write as many Sub as existing cases (800 Sub in my example).
Is there another light method to solve this difficulty?
My program in a few words is:
On the current Cell selected I would want to affect to this one, a
specific list. This specific list is chosen with the help of a button
menu (msoControlButton) located in a tree menu.

My code structure is:

Sub CreatMenuNiveauTapRoom(NiveauSec, VarObj3, i, j)
For i = 1 To 20
For j = 1 To 12
VarObj2 = VarObj1 & ".Room" & j
Set VarObj2 = VarOjb1.Controls.Add(Type:=msoControlButton)
TapRefRoom = "TapRefRoom" & j & NiveauSec & i

With VarObj2
.Caption = "Tap." & NiveauSec & ".BL" & i & ".Room" & j
'Passage de 3 paramètres à la procédure Insertlist
.OnAction = "'InsertList """ & NiveauSec & """,""" & i &
""",""" & j & """'"
End With

Next j
Next i
End Sub

Sub InsertList(NiveauSec, i, j)

TapRefRoom = "TapRefRoom" & j & NiveauSec & i
With Selection.Validation
.Delete

.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop,
Operator:= _
xlBetween, Formula1:="=" & TapRefRoom

End With
End Sub

Thanks to any advises


Jean.

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
search for text "beginning with" "containing" wildcards David H Excel Worksheet Functions 1 January 13th 10 01:24 PM
=IF(ISNUMBER(SEARCH("ELB",B2)),"Pipe") add more like "ELB" "FLG" MAHMOUD Excel Worksheet Functions 5 September 6th 09 06:04 PM
=IF(ISERROR(SEARCH("insurance",A125,1)),"","*") cynichromantique Excel Worksheet Functions 9 September 25th 08 09:49 PM
Any ideas "can't enter break mode at this time" error gone amok ArielMalek Excel Programming 1 July 12th 08 08:15 AM
"compile error in hidden module": DISTMOD -- ideas to fix it?? Clare Excel Discussion (Misc queries) 3 May 29th 08 01:44 AM


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