Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Events for Controls in a Multipage Control

hi

i need some help with events for a control

i have a multipage control, to which i add controls

however i am unable to write code for them

is there a way to do this ?

ie
in the general, i delcare

Public WithEvents cFoo As CommandButton

then in a macro

set foo = MultiPage1.Pages(0).Controls.Add
("Forms.CommandButton.1","cmdMain",True")

how do i write an event for this object

or how do i manuall add on object in design mode and add
code for the event

any help would be appreiciated, thanks

-George
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Events for Controls in a Multipage Control

Not on a worksheet - which is what I assume you are trying to do.

--
Regards,
Tom Ogilvy


"George" wrote in message
...
hi

i need some help with events for a control

i have a multipage control, to which i add controls

however i am unable to write code for them

is there a way to do this ?

ie
in the general, i delcare

Public WithEvents cFoo As CommandButton

then in a macro

set foo = MultiPage1.Pages(0).Controls.Add
("Forms.CommandButton.1","cmdMain",True")

how do i write an event for this object

or how do i manuall add on object in design mode and add
code for the event

any help would be appreiciated, thanks

-George



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Events for Controls in a Multipage Control

the multipage control is embedded in a worksheet


-----Original Message-----
Not on a worksheet - which is what I assume you are

trying to do.

--
Regards,
Tom Ogilvy


"George" wrote in message
...
hi

i need some help with events for a control

i have a multipage control, to which i add controls

however i am unable to write code for them

is there a way to do this ?

ie
in the general, i delcare

Public WithEvents cFoo As CommandButton

then in a macro

set foo = MultiPage1.Pages(0).Controls.Add
("Forms.CommandButton.1","cmdMain",True")

how do i write an event for this object

or how do i manuall add on object in design mode and add
code for the event

any help would be appreiciated, thanks

-George



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Events for Controls in a Multipage Control

and you had to go to more controls to get it there - the reason is that it
isn't supported on a worksheet - you can plunk it down there, but you can't
have events for the controls placed on it - at least I have never figured
out how to do it and have never seen any one else post a method. (although
the topic doesn't come up very often).

--
Regards,
Tom Ogilvy


"George" wrote in message
...
the multipage control is embedded in a worksheet


-----Original Message-----
Not on a worksheet - which is what I assume you are

trying to do.

--
Regards,
Tom Ogilvy


"George" wrote in message
...
hi

i need some help with events for a control

i have a multipage control, to which i add controls

however i am unable to write code for them

is there a way to do this ?

ie
in the general, i delcare

Public WithEvents cFoo As CommandButton

then in a macro

set foo = MultiPage1.Pages(0).Controls.Add
("Forms.CommandButton.1","cmdMain",True")

how do i write an event for this object

or how do i manuall add on object in design mode and add
code for the event

any help would be appreiciated, thanks

-George



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Events for Controls in a Multipage Control

I am trying to do the same thing except I am not creating the multipage control in a spreadsheet but in a form. I want to add controls to new pages on the multipage control at run time. I can't figure out how to created events for the new controls. I am not accessing the spreadsheet at all

----- Tom Ogilvy wrote: ----

and you had to go to more controls to get it there - the reason is that i
isn't supported on a worksheet - you can plunk it down there, but you can'
have events for the controls placed on it - at least I have never figure
out how to do it and have never seen any one else post a method. (althoug
the topic doesn't come up very often)

--
Regards
Tom Ogilv


"George" wrote in messag
..
the multipage control is embedded in a workshee
-----Original Message----

Not on a worksheet - which is what I assume you ar

trying to do
--

Regards
Tom Ogilv
"George" wrote in messag

..
h
i need some help with events for a contro
i have a multipage control, to which i add control
however i am unable to write code for the
is there a way to do this
i
in the general, i delcar
Public WithEvents cFoo As CommandButto
then in a macr
set foo = MultiPage1.Pages(0).Controls.Ad
("Forms.CommandButton.1","cmdMain",True"
how do i write an event for this objec
or how do i manuall add on object in design mode and ad
code for the even
any help would be appreiciated, thank
-Georg


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
MultiPage control Patrick Simonds Excel Worksheet Functions 1 August 5th 06 05:32 PM
MultiPage control George[_18_] Excel Programming 0 February 6th 04 03:33 PM
MultiPage control: Easy question SC Excel Programming 2 January 8th 04 08:54 PM
Scrollable list box demo now handles multipage controls Robin Hammond Excel Programming 0 October 8th 03 03:24 AM
Multipage control Neil Excel Programming 2 September 15th 03 01:24 PM


All times are GMT +1. The time now is 12:44 PM.

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"