Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default add button to UserForm programmatically

Hi,

Just read this article by MS.

But how to add an OK button? What is the equivalent of
"Forms.CheckBox.1"? What about other types of components. Is there a
single reference to all of this. Also, once I learn to add a button,
how to attach code to it?

Many thanks in advance!

Aaron Fude

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default add button to UserForm programmatically

You can add controls and code dynamically; requires perseverence (debugging
is much more difficult)!

Consider having ALL your controls on the form (with associated) code on the
form at the outset. Set the visible property of the controls (you might have
wanted to add) to FALSE initially and set the property to TRUE when you might
have added them.

" wrote:

Hi,

Just read this article by MS.

But how to add an OK button? What is the equivalent of
"Forms.CheckBox.1"? What about other types of components. Is there a
single reference to all of this. Also, once I learn to add a button,
how to attach code to it?

Many thanks in advance!

Aaron Fude


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default add button to UserForm programmatically

http://www.j-walk.com/ss/excel/tips/tip76.htm

--
Regards,
Tom Ogilvy


" wrote:

Hi,

Just read this article by MS.

But how to add an OK button? What is the equivalent of
"Forms.CheckBox.1"? What about other types of components. Is there a
single reference to all of this. Also, once I learn to add a button,
how to attach code to it?

Many thanks in advance!

Aaron Fude


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
Create UserForm programmatically Ber Excel Programming 5 September 11th 05 11:20 AM
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
delete Userform control programmatically ben Excel Programming 8 February 15th 05 08:14 PM
how do i programmatically insert a button on a worksheet Qaspec Excel Programming 1 February 2nd 05 05:07 AM
how to add code programmatically to a macro for a button Tina Excel Programming 0 August 26th 03 03:30 AM


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