LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Adding Button to Popup Control

I am trying to add a button to a popup control, but I am getting an error
message saying that the add method failed. Here is the code that I am using.
This code works for other controls.

Set oPop = Application.CommandBars("BPT_BOTTOM").Controls.Add
(Type:=msoControlPopup, Id:=30080, Befo=2)

oPop.Caption = "Change IT!"
'basic shapes------------------------------------------------

Set oSecondPop = oPop.Controls.Add(Type:=msoControlButtonPopup, Id:=1405,
Befo=1)

oSecondPop.Controls.Add Type:=msoControlButton, Id:=1232

Does anyone know what I am doing wrong?

Thanks,
Jeff

 
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
adding a control button with a filter Belinda7237 Excel Worksheet Functions 2 June 14th 08 11:07 PM
ADDING A PRINT CONTROL BUTTON Tonya Excel Worksheet Functions 1 September 25th 06 09:55 PM
Adding a control button to insert a date in the active cell. Mike Excel Discussion (Misc queries) 2 February 15th 05 06:27 PM
How do I get events from a "Split Button Popup" control? Tim Sylvester Excel Programming 0 June 24th 04 11:46 PM
Control IE popup from excel VBA instantiation jonathan Excel Programming 0 October 29th 03 09:09 PM


All times are GMT +1. The time now is 06:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"