Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default View Control of Form Controls

In my Excel workbook, sheet1, I have added several option (radio) buttons
from the Forms Toolbar along with some frames and checkboxes. In cell B10,
and C10 I have two radio buttons, one is €œPre Sales€ and the second is €œPost
Sales€

If I select €œPre Sales€ I will hide rows 50-100 which is the Post Sales
information. If I select €œPost Sales€ I will hide the €œPre Sales€ rows
15-49. I can do this hide show, no problem by creating views, however, any
form objects, frames, checkboxes or radio buttons in these sections do not
hide, they always show.

How can I control the form objects using views, or hide/show?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default View Control of Form Controls

For each object:

left click,select Format Control, then Properties tab: select "Size and
move with cells"

DM Unseen

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default View Control of Form Controls

My "Size and Move with Cells" is greyed out? so far cant find the way to get
it back on. I'm using Excel 2003

"DM Unseen" wrote:

For each object:

left click,select Format Control, then Properties tab: select "Size and
move with cells"

DM Unseen


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default View Control of Form Controls

John:

TopLeftCell Property:Returns a Range object that represents the cell that
lies under the upper-left corner of the specified object

try,

Dim shp As Shape
For Each shp In Sheet1.Shapes
ss = shp.TopLeftCell.Row
If shp.TopLeftCell.Row 15 And shp.TopLeftCell.Row < 49 Then
shp.Visible = msoFalse
End If
Next shp

--
天行å¥ï¼Œå›å*ä»¥è‡ªå¼·ä¸æ¯
地勢å¤ï¼Œå›å*以厚德載物

http://www.vba.com.tw/plog/


"John Jost" wrote:

In my Excel workbook, sheet1, I have added several option (radio) buttons
from the Forms Toolbar along with some frames and checkboxes. In cell B10,
and C10 I have two radio buttons, one is €œPre Sales€ and the second is €œPost
Sales€

If I select €œPre Sales€ I will hide rows 50-100 which is the Post Sales
information. If I select €œPost Sales€ I will hide the €œPre Sales€ rows
15-49. I can do this hide show, no problem by creating views, however, any
form objects, frames, checkboxes or radio buttons in these sections do not
hide, they always show.

How can I control the form objects using views, or hide/show?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default View Control of Form Controls

very interesting. I will give this a try

"chijanzen" wrote:

John:

TopLeftCell Property:Returns a Range object that represents the cell that
lies under the upper-left corner of the specified object

try,

Dim shp As Shape
For Each shp In Sheet1.Shapes
ss = shp.TopLeftCell.Row
If shp.TopLeftCell.Row 15 And shp.TopLeftCell.Row < 49 Then
shp.Visible = msoFalse
End If
Next shp

--
天行å¥ï¼Œå›å*ä»¥è‡ªå¼·ä¸æ¯
地勢å¤ï¼Œå›å*以厚德載物

http://www.vba.com.tw/plog/


"John Jost" wrote:

In my Excel workbook, sheet1, I have added several option (radio) buttons
from the Forms Toolbar along with some frames and checkboxes. In cell B10,
and C10 I have two radio buttons, one is €œPre Sales€ and the second is €œPost
Sales€

If I select €œPre Sales€ I will hide rows 50-100 which is the Post Sales
information. If I select €œPost Sales€ I will hide the €œPre Sales€ rows
15-49. I can do this hide show, no problem by creating views, however, any
form objects, frames, checkboxes or radio buttons in these sections do not
hide, they always show.

How can I control the form objects using views, or hide/show?




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
2007 Form Control/ActiveX Control font difference Nikko963 Excel Discussion (Misc queries) 0 April 15th 09 04:21 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
Unable to see Properties in Design View for controls ts1 Excel Worksheet Functions 0 September 22nd 05 07:55 PM
Control Toolbox Controls spIky haIred Excel Programming 0 August 24th 05 08:13 AM
Controls Toolbox control vs Form Toolbox control Tony_VBACoder Excel Programming 3 January 28th 05 08:30 AM


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