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

I'm having trouble putting controls into a frame. The way I understand it, I
should be able to either paste controls in or create them in a frame
directly. Neither works for me. I'm using Excel 2003 and when I attempt to
do it, the control will not go into the frame, it will go either over or
under it, I move the frame around and the control stays where it is. Am I
doing this wrong? Any ideas what I can do to make it work? BTW, when I say
control I mean textbox, radiobutton, etc.

Any help would be great!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Controls in a Frame


"JIPS" wrote in message
...
I'm having trouble putting controls into a frame. The way I understand it,
I should be able to either paste controls in or create them in a frame
directly. Neither works for me. I'm using Excel 2003 and when I attempt to
do it, the control will not go into the frame, it will go either over or
under it, I move the frame around and the control stays where it is. Am I
doing this wrong? Any ideas what I can do to make it work? BTW, when I say
control I mean textbox, radiobutton, etc.

Any help would be great!


Also, if it makes any difference, this is on a worksheet, not in a form.

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Controls in a Frame

Frames are not really supported on a worksheet (plus they look like crap).

I know how to get the control on the frame, but once it is there you can't
do anything with it - their events are not exposed. Anyway once you have the
frame on the worksheet and you are in design mode, right click on the frame
to get a popup window. Then select Frame object and then Edit and a new
Control toolbox toolbar will appear (the same one you see in the vbe) next to
the frame. You can use controls from there and they will be placed on the
frame.


The reason it isn't on the control toolbar by default is because, as I said,
it really isn't supported.

--
Regards,
Tom Ogilvy


"JIPS" wrote:


"JIPS" wrote in message
...
I'm having trouble putting controls into a frame. The way I understand it,
I should be able to either paste controls in or create them in a frame
directly. Neither works for me. I'm using Excel 2003 and when I attempt to
do it, the control will not go into the frame, it will go either over or
under it, I move the frame around and the control stays where it is. Am I
doing this wrong? Any ideas what I can do to make it work? BTW, when I say
control I mean textbox, radiobutton, etc.

Any help would be great!


Also, if it makes any difference, this is on a worksheet, not in a form.

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Controls in a Frame

Tom, thanks a lot. Not what I wanted to hear, but definately what I need to
hear. Much appreciated.

I guess I'm approaching this from the wrong way then. Is there a good way to
hide and unhide different groups of controls on a worksheet? I was thinking
I would do it by turning the visibility on and off on a frame, but that
isn't going to work.


"Tom Ogilvy" wrote in message
...
Frames are not really supported on a worksheet (plus they look like crap).

I know how to get the control on the frame, but once it is there you can't
do anything with it - their events are not exposed. Anyway once you have
the
frame on the worksheet and you are in design mode, right click on the
frame
to get a popup window. Then select Frame object and then Edit and a new
Control toolbox toolbar will appear (the same one you see in the vbe) next
to
the frame. You can use controls from there and they will be placed on the
frame.


The reason it isn't on the control toolbar by default is because, as I
said,
it really isn't supported.

--
Regards,
Tom Ogilvy


"JIPS" wrote:


"JIPS" wrote in message
...
I'm having trouble putting controls into a frame. The way I understand
it,
I should be able to either paste controls in or create them in a frame
directly. Neither works for me. I'm using Excel 2003 and when I attempt
to
do it, the control will not go into the frame, it will go either over
or
under it, I move the frame around and the control stays where it is. Am
I
doing this wrong? Any ideas what I can do to make it work? BTW, when I
say
control I mean textbox, radiobutton, etc.

Any help would be great!


Also, if it makes any difference, this is on a worksheet, not in a form.

Thanks.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Controls in a Frame

Perhaps you could name them

grp1Combobox1
grp1Textbox1
grp1Textbox2


for each ole in activesheet.OleObjects
if lcase(left(ole.Name,4)) = "grp1" then
ole.Visible = True
else
ole.visible = False
end if
Next

--
Regards,
Tom Ogilvy


"JIPS" wrote:

Tom, thanks a lot. Not what I wanted to hear, but definately what I need to
hear. Much appreciated.

I guess I'm approaching this from the wrong way then. Is there a good way to
hide and unhide different groups of controls on a worksheet? I was thinking
I would do it by turning the visibility on and off on a frame, but that
isn't going to work.


"Tom Ogilvy" wrote in message
...
Frames are not really supported on a worksheet (plus they look like crap).

I know how to get the control on the frame, but once it is there you can't
do anything with it - their events are not exposed. Anyway once you have
the
frame on the worksheet and you are in design mode, right click on the
frame
to get a popup window. Then select Frame object and then Edit and a new
Control toolbox toolbar will appear (the same one you see in the vbe) next
to
the frame. You can use controls from there and they will be placed on the
frame.


The reason it isn't on the control toolbar by default is because, as I
said,
it really isn't supported.

--
Regards,
Tom Ogilvy


"JIPS" wrote:


"JIPS" wrote in message
...
I'm having trouble putting controls into a frame. The way I understand
it,
I should be able to either paste controls in or create them in a frame
directly. Neither works for me. I'm using Excel 2003 and when I attempt
to
do it, the control will not go into the frame, it will go either over
or
under it, I move the frame around and the control stays where it is. Am
I
doing this wrong? Any ideas what I can do to make it work? BTW, when I
say
control I mean textbox, radiobutton, etc.

Any help would be great!

Also, if it makes any difference, this is on a worksheet, not in a form.

Thanks.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Controls in a Frame

Tom, thanks so much!

That will work perfectly. Very much appreciated!!!


"Tom Ogilvy" wrote in message
...
Perhaps you could name them

grp1Combobox1
grp1Textbox1
grp1Textbox2


for each ole in activesheet.OleObjects
if lcase(left(ole.Name,4)) = "grp1" then
ole.Visible = True
else
ole.visible = False
end if
Next

--
Regards,
Tom Ogilvy


"JIPS" wrote:

Tom, thanks a lot. Not what I wanted to hear, but definately what I need
to
hear. Much appreciated.

I guess I'm approaching this from the wrong way then. Is there a good way
to
hide and unhide different groups of controls on a worksheet? I was
thinking
I would do it by turning the visibility on and off on a frame, but that
isn't going to work.


"Tom Ogilvy" wrote in message
...
Frames are not really supported on a worksheet (plus they look like
crap).

I know how to get the control on the frame, but once it is there you
can't
do anything with it - their events are not exposed. Anyway once you
have
the
frame on the worksheet and you are in design mode, right click on the
frame
to get a popup window. Then select Frame object and then Edit and a
new
Control toolbox toolbar will appear (the same one you see in the vbe)
next
to
the frame. You can use controls from there and they will be placed on
the
frame.


The reason it isn't on the control toolbar by default is because, as I
said,
it really isn't supported.

--
Regards,
Tom Ogilvy


"JIPS" wrote:


"JIPS" wrote in message
...
I'm having trouble putting controls into a frame. The way I
understand
it,
I should be able to either paste controls in or create them in a
frame
directly. Neither works for me. I'm using Excel 2003 and when I
attempt
to
do it, the control will not go into the frame, it will go either
over
or
under it, I move the frame around and the control stays where it is.
Am
I
doing this wrong? Any ideas what I can do to make it work? BTW, when
I
say
control I mean textbox, radiobutton, etc.

Any help would be great!

Also, if it makes any difference, this is on a worksheet, not in a
form.

Thanks.








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
Excel controls vs vba controls cmpcwil2[_6_] Excel Programming 3 April 19th 06 03:33 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
How to attach legend frame to chart frame? holg3r Charts and Charting in Excel 2 July 7th 05 11:41 PM
Event procedures for controls added with Controls.Add John Austin[_4_] Excel Programming 1 March 9th 05 03:31 PM
Creating Userform Controls on Frame David Myle Excel Programming 2 February 14th 05 02:51 PM


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