Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unknown Error Message
I am running the following code:
ActiveSheet.Buttons.Add(481.5, 15, 87.75, 47.25).Select Selection.OnAction = "ThisWorkbook.CommandButton1_Click" Selection.Characters.Text = "Sort and Print" Whenever the action gets to this part of the code it creates an error message that says "400". Does anyone know what this means? Thanks SS |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unknown Error Message
You adding a button from the forms toolbar and tying it to a event macro for
a control toolbox toolbar commandbutton. You should rename you macro and put it in a general module. Assume the macros name is Sub btn_click() End sub Dim btn as Button set btn = ActiveSheet.Buttons.Add(481.5, 15, 87.75, 47.25) btn.OnAction = "btn_click" btn.Caption = "Sort and Print" -- Regards, Tom Ogilvy "S. S." wrote in message ... I am running the following code: ActiveSheet.Buttons.Add(481.5, 15, 87.75, 47.25).Select Selection.OnAction = "ThisWorkbook.CommandButton1_Click" Selection.Characters.Text = "Sort and Print" Whenever the action gets to this part of the code it creates an error message that says "400". Does anyone know what this means? Thanks SS |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Unknown Error Message | Excel Discussion (Misc queries) | |||
unknown #value error | Excel Discussion (Misc queries) | |||
Unknown Error - HELP | Excel Programming | |||
Unknown Error - HELP | Excel Programming | |||
Unknown where is the problem on the Runtime error - Automation error | Excel Programming |