Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default attach userform to button

I have this with statement

With Sheets("Agent Summary")
ActiveSheet.OLEObjects.Add(ClassType:="Forms.Comma ndButton.1", Link:=False
_
, DisplayAsIcon:=False, Left:=1.5, Top:=1, Width:=95.25, Height:= _
24.75).Select

Sheets("Agent Summary").CommandButton1.Caption = "Command Box"

End With

I want to attach a userform to the botton whe it creates teh button meaning I
want the button to open a userform when its clicked after the button is
created. Can I get help please?

--
Message posted via http://www.officekb.com

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
Browse and attach file in a UserForm Jeroen Kluytmans Excel Programming 2 March 7th 05 09:40 AM
Mailto / Attach... Button to do so? Siggsy007[_4_] Excel Programming 0 September 21st 04 08:43 AM
Mailto / Attach... Button to do so? Siggsy007[_2_] Excel Programming 2 September 21st 04 12:40 AM
Mailto / Attach... Button to do so? Siggsy007[_3_] Excel Programming 0 September 20th 04 05:04 PM
Mailto / Attach... Button to do so? Siggsy007 Excel Programming 1 September 20th 04 11:38 AM


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