Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Menu and Form problems

In menu, can able to Pass parameter using "OnAction" ?

Set MenuItem = NewMenu.Controls.Add _
(Type:=msoControlButton)
With MenuItem
.Caption = "Build Japan"
.FaceId = 0
.OnAction = "Process_frm_GEN (\""JAP\"")" <--- This coding not
works
.BeginGroup = True '~~ Separators in menu
End With


Sub Process_frm_GEN(loSite As String)
MsgBox loSite
End Sub


Also, it is possible pass parameters to form ? I want change Form
Caption and some value.

Sub Process_frm_SIN()
frmProcess_SIN.Show
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Menu and Form problems

Set MenuItem = NewMenu.Controls.Add _
(Type:=msoControlButton)
With MenuItem
.Caption = "Build Japan"
.FaceId = 0
.OnAction = "Process_frm_GEN
.Parameter = "JAP"
.BeginGroup = True '~~ Separators in menu
End With


Sub Process_frm_GEN()
With Application.Commandbars.ActionControl
MsgBox .Parameter
End With
End Sub


Also, it is possible pass parameters to form ? I want change Form
Caption and some value.


Sub Process_frm_SIN()
frmProcess_SIN.Caption = "Test"
frmProcess_SIN.Show
End Sub


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"moonhk" wrote in message
ups.com...
In menu, can able to Pass parameter using "OnAction" ?

Set MenuItem = NewMenu.Controls.Add _
(Type:=msoControlButton)
With MenuItem
.Caption = "Build Japan"
.FaceId = 0
.OnAction = "Process_frm_GEN (\""JAP\"")" <--- This coding not
works
.BeginGroup = True '~~ Separators in menu
End With


Sub Process_frm_GEN(loSite As String)
MsgBox loSite
End Sub


Also, it is possible pass parameters to form ? I want change Form
Caption and some value.

Sub Process_frm_SIN()
frmProcess_SIN.Show
End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Menu and Form problems

It works.

Bob Phillips wrote:
Set MenuItem = NewMenu.Controls.Add _
(Type:=msoControlButton)
With MenuItem
.Caption = "Build Japan"
.FaceId = 0
.OnAction = "Process_frm_GEN
.Parameter = "JAP"
.BeginGroup = True '~~ Separators in menu
End With


Sub Process_frm_GEN()
With Application.Commandbars.ActionControl
MsgBox .Parameter
End With
End Sub


Also, it is possible pass parameters to form ? I want change Form
Caption and some value.


Sub Process_frm_SIN()
frmProcess_SIN.Caption = "Test"
frmProcess_SIN.Show
End Sub


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"moonhk" wrote in message
ups.com...
In menu, can able to Pass parameter using "OnAction" ?

Set MenuItem = NewMenu.Controls.Add _
(Type:=msoControlButton)
With MenuItem
.Caption = "Build Japan"
.FaceId = 0
.OnAction = "Process_frm_GEN (\""JAP\"")" <--- This coding not
works
.BeginGroup = True '~~ Separators in menu
End With


Sub Process_frm_GEN(loSite As String)
MsgBox loSite
End Sub


Also, it is possible pass parameters to form ? I want change Form
Caption and some value.

Sub Process_frm_SIN()
frmProcess_SIN.Show
End Sub


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
Excel 2007 Add-ins Menu Problems Harimau Setting up and Configuration of Excel 3 March 27th 09 11:05 PM
Problems with Edit Menu Paul S Setting up and Configuration of Excel 2 January 24th 07 11:50 PM
Toolbar Menu problems Nigel Excel Programming 4 April 10th 05 02:29 PM
Custom menu problems Andrew Fletcher Excel Programming 5 April 3rd 05 01:42 PM
Problems with Excel 2003 Help menu BareBamboo Excel Discussion (Misc queries) 2 December 1st 04 07:29 PM


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